staging: rtl8723bs: remove null test before kfree
authorAishwarya Pant <aishpant@gmail.com>
Mon, 10 Apr 2017 13:43:50 +0000 (19:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 11 Apr 2017 05:34:14 +0000 (07:34 +0200)
commit7ad61a386bb804ae562966ae23baf5f4deee014b
tree7d00a81a62b2484d826cc522210bbb1b04f2ae6c
parent9ddf6e34ff6b56a4187bdc1b6335f46969f16b17
staging: rtl8723bs: remove null test before kfree

kfree(..) on a NULL pointer is a no-op; the null test here is redundant.
Detected by coccicheck.

Signed-off-by: Aishwarya Pant <aishpant@gmail.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c
drivers/staging/rtl8723bs/hal/sdio_ops.c
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
drivers/staging/rtl8723bs/os_dep/ioctl_linux.c
drivers/staging/rtl8723bs/os_dep/xmit_linux.c