Commit 0fa79a78 authored by YueHaibing's avatar YueHaibing Committed by Greg Kroah-Hartman
Browse files

staging: rtl8723bs: Remove unnecessary null check



Null check before kfree is redundant, so remove it.
This is detected by coccinelle.

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20191010153325.16836-1-yuehaibing@huawei.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2e821be2
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1121,7 +1121,6 @@ void rtw_ndev_destructor(struct net_device *ndev)
{
	DBG_871X(FUNC_NDEV_FMT "\n", FUNC_NDEV_ARG(ndev));

	if (ndev->ieee80211_ptr)
	kfree(ndev->ieee80211_ptr);
}