From 6104248620f2ca86b19856e68f6d84688f6f940f Mon Sep 17 00:00:00 2001 From: Amitoj Kaur Chawla Date: Wed, 24 Feb 2016 03:13:22 +0530 Subject: [PATCH] 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 --- drivers/staging/lustre/lustre/libcfs/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c index fa0d23cd46ab..f60feb3a3dc7 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 */ -- 2.39.5