diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-10-15 19:55:11 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-10-15 18:35:00 +0200 |
commit | bbecf7de097690af75d9a292a6ac1316092a7389 (patch) | |
tree | 105d47ccef2b081628b14c308e73aaf57ea5e01e /drivers/staging/rtl8723bs | |
parent | 88d0facf186c6c652c2203536fecd77089b43a4e (diff) | |
download | linux-bbecf7de097690af75d9a292a6ac1316092a7389.tar.gz linux-bbecf7de097690af75d9a292a6ac1316092a7389.tar.bz2 linux-bbecf7de097690af75d9a292a6ac1316092a7389.zip |
staging: rtl8723bs: remove unnecessary null check
Null check before kfree is redundant, so remove it.
This is detected by coccinelle.
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20191015115511.26560-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r-- | drivers/staging/rtl8723bs/core/rtw_xmit.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/staging/rtl8723bs/core/rtw_xmit.c b/drivers/staging/rtl8723bs/core/rtw_xmit.c index 7011c2aa25cb..6d193f137b7e 100644 --- a/drivers/staging/rtl8723bs/core/rtw_xmit.c +++ b/drivers/staging/rtl8723bs/core/rtw_xmit.c @@ -2206,12 +2206,9 @@ s32 rtw_alloc_hwxmits(struct adapter *padapter) void rtw_free_hwxmits(struct adapter *padapter) { - struct hw_xmit *hwxmits; struct xmit_priv *pxmitpriv = &padapter->xmitpriv; - hwxmits = pxmitpriv->hwxmits; - if (hwxmits) - kfree(hwxmits); + kfree(pxmitpriv->hwxmits); } void rtw_init_hwxmits(struct hw_xmit *phwxmit, sint entry) |