OpenCloudOS-Kernel/drivers/staging/rtl8723bs
Simran Singhal b67b7b0465 staging: rtl8723bs: hal: Remove NULL check before kfree
NULL check before kfree is unnecessary so remove it.

The following Coccinelle script was used to detect this:
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;

Signed-off-by: Simran Singhal <singhalsimran0@gmail.com>
Link: https://lore.kernel.org/r/20200326132823.GA18625@simran-Inspiron-5558
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-03-26 15:47:26 +01:00
..
core staging: rtl8723bs: core: Correct typos in comments 2020-03-26 15:45:08 +01:00
hal staging: rtl8723bs: hal: Remove NULL check before kfree 2020-03-26 15:47:26 +01:00
include staging: rtl8723bs: Fix spacing issues 2020-02-14 08:18:23 -08:00
os_dep staging: rtl8723bs: os_dep: Correct typos in comments 2020-03-26 15:45:08 +01:00
Kconfig staging: rtl8723bs: use help instead of ---help--- in Kconfig 2019-05-20 10:49:08 +02:00
Makefile staging: rtl8723bs: Remove debugging information exposed via procfs 2019-08-14 13:20:12 +02:00
TODO staging: rtl8723bs: Remove myself from CC: 2019-06-20 14:32:07 +02:00