staging: rtl8723bs: core: rtw_cmd: drop unneeded null tests
authorJulia Lawall <julia.lawall@lip6.fr>
Sat, 8 Apr 2017 17:12:27 +0000 (19:12 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 9 Apr 2017 07:29:29 +0000 (09:29 +0200)
commit6cb3d05f3030deed157c9bbada5c58e7ee0f5172
treedb6ccbb32347a5e64b242c5ba91ebf5cd090eefd
parentf951e88bdc1c1f667d9237a52e2e5d76ae16cf54
staging: rtl8723bs: core: rtw_cmd: drop unneeded null tests

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: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_cmd.c