From: Amitoj Kaur Chawla Date: Tue, 23 Feb 2016 21:43:55 +0000 (+0530) Subject: staging: lustre: libcfs: Remove unnecessary braces X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=4d163b493807c6914e6d5ca15bae4479b470f9f7;p=linux-beck.git 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 --- diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c index 8e6f9ac714a9..fa0d23cd46ab 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