From 4d163b493807c6914e6d5ca15bae4479b470f9f7 Mon Sep 17 00:00:00 2001 From: Amitoj Kaur Chawla Date: Wed, 24 Feb 2016 03:13:55 +0530 Subject: [PATCH] staging: lustre: libcfs: Remove unnecessary braces Removed unncessary braces from the if-else block to remove the following checkpatch.pl warning: WARNING: braces {} are not necessary for any arm of this statement Signed-off-by: Amitoj Kaur Chawla Signed-off-by: Greg Kroah-Hartman --- drivers/staging/lustre/lustre/libcfs/hash.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c index 8e6f9ac..fa0d23c 100644 --- a/drivers/staging/lustre/lustre/libcfs/hash.c +++ b/drivers/staging/lustre/lustre/libcfs/hash.c @@ -800,12 +800,10 @@ 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 == 0) bd2->bd_bucket = NULL; - - } else if (rc > 0) { + else if (rc > 0) swap(*bd1, *bd2); /* swap bd1 and bd2 */ - } } void -- 2.7.4