From: Tina Johnson Date: Wed, 8 Oct 2014 06:50:23 +0000 (+0530) Subject: Staging: lustre: Fix checkpatch error: Unnecessary comparison X-Git-Tag: firefly_0821_release~176^2~2665^2~1212 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a15dbf99abd0ea9db59749a5cafd7caea84472dc;p=firefly-linux-kernel-4.4.55.git Staging: lustre: Fix checkpatch error: Unnecessary comparison Removed unnecessary comparison against NULL to remove following checkpatch error: ERROR: spaces required around that '!=' Signed-off-by: Tina Johnson Reviewed-by: Josh Triplett Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/llite/llite_lib.c b/drivers/staging/lustre/lustre/llite/llite_lib.c index e45070d7f219..0311b96a2eeb 100644 --- a/drivers/staging/lustre/lustre/llite/llite_lib.c +++ b/drivers/staging/lustre/lustre/llite/llite_lib.c @@ -1122,7 +1122,7 @@ void ll_put_super(struct super_block *sb) } next = 0; - while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, &next)) !=NULL) + while ((obd = class_devices_in_group(&sbi->ll_sb_uuid, &next))) class_manual_cleanup(obd); if (sbi->ll_flags & LL_SBI_VERBOSE)