Skip to content

Commit a39a6b3

Browse files
martin-kaisergregkh
authored andcommitted
staging: r8188eu: remove unnecessary initializations
Do not initialise bPacketMatchBSSID, bPacketToSelf and bPacketBeacon to false at the start of update_recvframe_phyinfo_88e. All of them are set to their actual values before they're used. Signed-off-by: Martin Kaiser <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 02d838d commit a39a6b3

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/staging/r8188eu/hal/rtl8188e_rxdesc.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ void update_recvframe_phyinfo_88e(struct recv_frame *precvframe, struct phy_stat
118118
struct sta_priv *pstapriv;
119119
struct sta_info *psta;
120120

121-
pkt_info.bPacketMatchBSSID = false;
122-
pkt_info.bPacketToSelf = false;
123-
pkt_info.bPacketBeacon = false;
124-
125121
pkt_info.bPacketMatchBSSID = ((!IsFrameTypeCtrl(wlanhdr)) &&
126122
!pattrib->icv_err && !pattrib->crc_err &&
127123
!memcmp(get_hdr_bssid(wlanhdr),

0 commit comments

Comments
 (0)