staging: lusture: obdclass: Remove unnecessary NULL check
PATCH 1/1 staging: lusture: obdclass: Remove unnecessary NULL check
NULL check before the debugfs_remove_recursive function is not needed.
This was detected using scripts/coccinelle/free/ifnullfree.cocci
Signed-off-by Bhaktipriya Shridhar <[email protected]>
--- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/lustre/lustre/obdclass/linux/linux-module.c +1 -2
@@ -454,8 +454,7 @@ out:int class_procfs_clean (void ) { -if (debugfs_lustre_root !=NULL ) -debugfs_remove_recursive (debugfs_lustre_root); +debugfs_remove_recursive (debugfs_lustre_root); debugfs_lustre_root =NULL ;
--
2.1.4
Greg Kroah-Hartman
maintainerQuoted 8 lines · Bhaktipriya Shridhar
NULL check before the
debugfs_remove_recursivefunction is not needed.This was detected using
scripts/coccinelle/free/ifnullfree.cocciSigned-off-by Bhaktipriya Shridhar <[email protected]>--- drivers/staging/lustre/lustre/obdclass/linux/linux-module.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
Doesn't apply to my tree :(