mirror of
https://github.com/torvalds/linux.git
synced 2024-12-14 23:25:54 +00:00
staging: rtl8723bs: core: rtw_cmd: drop unneeded null test
kfree returns immediately on NULL so the tests are not needed. Generated by: scripts/coccinelle/free/ifnullfree.cocci CC: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Fengguang Wu <fengguang.wu@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
1c21a34de1
commit
f951e88bdc
@ -1855,8 +1855,7 @@ static void update_bcn_wps_ie(struct adapter *padapter)
|
||||
pnetwork->IELength = wps_offset + (wps_ielen+2) + remainder_ielen;
|
||||
}
|
||||
|
||||
if (pbackup_remainder_ie)
|
||||
kfree(pbackup_remainder_ie);
|
||||
kfree(pbackup_remainder_ie);
|
||||
|
||||
/* deal with the case without set_tx_beacon_cmd() in update_beacon() */
|
||||
#if defined(CONFIG_INTERRUPT_BASED_TXBCN)
|
||||
|
Loading…
Reference in New Issue
Block a user