Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f951e88b authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman
Browse files

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: default avatarJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 1c21a34d
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1855,7 +1855,6 @@ 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);

	/*  deal with the case without set_tx_beacon_cmd() in update_beacon() */