From: Amitoj Kaur Chawla Date: Tue, 23 Feb 2016 21:43:22 +0000 (+0530) Subject: staging: lustre: libcfs: Remove comparison with zero X-Git-Tag: v4.6-rc1~103^2~469 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6104248620f2ca86b19856e68f6d84688f6f940f;p=platform%2Fkernel%2Flinux-exynos.git staging: lustre: libcfs: Remove comparison with zero Replace comparison with zero with ! operator. Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c index fa0d23c..f60feb3 100644 --- a/drivers/staging/lustre/lustre/libcfs/hash.c +++ b/drivers/staging/lustre/lustre/libcfs/hash.c @@ -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 */