staging: lustre: libcfs: Remove comparison with zero
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Tue, 23 Feb 2016 21:43:22 +0000 (03:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:18:11 +0000 (22:18 -0800)
Replace comparison with zero with ! operator.

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/hash.c

index fa0d23c..f60feb3 100644 (file)
@@ -800,7 +800,7 @@ cfs_hash_bd_order(struct cfs_hash_bd *bd1, struct cfs_hash_bd *bd2)
        }
 
        rc = cfs_hash_bd_compare(bd1, bd2);
-       if (rc == 0)
+       if (!rc)
                bd2->bd_bucket = NULL;
        else if (rc > 0)
                swap(*bd1, *bd2); /* swap bd1 and bd2 */