summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Bernard <jbernard@tuxion.com>2013-09-13 13:29:30 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-09-17 07:47:46 -0700
commit3816a5409ebfcf0b9a0d5f3cc7df0165bb0750d7 (patch)
treebff462d87cb6343f0395abda106c71fc0ce2f2d5
parent9dbd5fe8b57753c626d04243004278ab07471403 (diff)
Staging: lustre: remove unnecessary braces
This is a patch to the lvfs_lib.c file that removes unnecessary braces from an if statement found by the checkpatch.pl tool. Signed-off-by: Jon Bernard <jbernard@tuxion.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/lustre/lustre/lvfs/lvfs_lib.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/staging/lustre/lustre/lvfs/lvfs_lib.c b/drivers/staging/lustre/lustre/lvfs/lvfs_lib.c
index 97a8be2300d..b21e40cdaca 100644
--- a/drivers/staging/lustre/lustre/lvfs/lvfs_lib.c
+++ b/drivers/staging/lustre/lustre/lvfs/lvfs_lib.c
@@ -154,11 +154,10 @@ int lprocfs_stats_alloc_one(struct lprocfs_stats *stats, unsigned int cpuid)
spin_lock(&stats->ls_lock);
if (stats->ls_biggest_alloc_num <= cpuid)
stats->ls_biggest_alloc_num = cpuid + 1;
- if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE) {
+ if (stats->ls_flags & LPROCFS_STATS_FLAG_IRQ_SAFE)
spin_unlock_irqrestore(&stats->ls_lock, flags);
- } else {
+ else
spin_unlock(&stats->ls_lock);
- }
}
/* initialize the ls_percpu[cpuid] non-zero counter */
for (i = 0; i < stats->ls_num; ++i) {