]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit290f5bcea28227ff86a422990d7a6b3d12575cf0
tree7d00a81a62b2484d826cc522210bbb1b04f2ae6c
parent8c959153f869576160d71560b9adfab11db91c1c
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