diff options
author | Amitoj Kaur Chawla <amitoj1606@gmail.com> | 2016-02-24 03:13:55 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-25 22:18:11 -0800 |
commit | 4d163b493807c6914e6d5ca15bae4479b470f9f7 (patch) | |
tree | 4e10d2fad56ecd4a6b85cc2312438a0e8e8e294c /drivers/staging/lustre/lustre/libcfs/hash.c | |
parent | staging: lustre: libcfs: Use swap() in cfs_hash_bd_order() (diff) | |
download | linux-dev-4d163b493807c6914e6d5ca15bae4479b470f9f7.tar.xz linux-dev-4d163b493807c6914e6d5ca15bae4479b470f9f7.zip |
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 <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre/lustre/libcfs/hash.c')
-rw-r--r-- | drivers/staging/lustre/lustre/libcfs/hash.c | 6 |
1 files changed, 2 insertions, 4 deletions
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 |