staging: lustre: libcfs: Remove unnecessary braces
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Tue, 23 Feb 2016 21:43:55 +0000 (03:13 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Feb 2016 06:18:11 +0000 (22:18 -0800)
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 <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/hash.c

index 8e6f9ac714a91b1008bdadce1eed7cc4fb71e5b7..fa0d23cd46abddb5fe41e5a9042f44629d6849c2 100644 (file)
@@ -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