mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: vt6656: rxtx.c s_vFillCTSHead Remove byPktType if
s_vFillCTSHead is only called when byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA so remove unnecessary if on byPktType. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2b83ebd0b7
commit
43e48a4a8b
@ -766,7 +766,6 @@ static void s_vFillCTSHead(struct vnt_private *pDevice, u32 uDMAIdx,
|
||||
return;
|
||||
}
|
||||
|
||||
if (byPktType == PK_TYPE_11GB || byPktType == PK_TYPE_11GA) {
|
||||
if (byFBOption != AUTO_FB_NONE) {
|
||||
/* Auto Fall back */
|
||||
struct vnt_cts_fb *pBuf = (struct vnt_cts_fb *)pvCTS;
|
||||
@ -802,7 +801,6 @@ static void s_vFillCTSHead(struct vnt_private *pDevice, u32 uDMAIdx,
|
||||
pBuf->data.frame_control = TYPE_CTL_CTS;
|
||||
memcpy(pBuf->data.ra, pDevice->abyCurrentNetAddr, ETH_ALEN);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*+
|
||||
|
Loading…
Reference in New Issue
Block a user