[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1412265439-3654-1-git-send-email-paulmcquad@gmail.com>
Date: Thu, 2 Oct 2014 16:57:19 +0100
From: Paul McQuade <paulmcquad@...il.com>
To: paulmcquad@...il.com
Cc: akpm@...ux-foundation.org, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, davidlohr@...com,
lcapitulino@...hat.com, iamjoonsoo.kim@....com,
aarcange@...hat.com, kirill.shutemov@...ux.intel.com
Subject: [PATCH] mm: hugetlb braces not needed
braces {} are not necessary for any arm of this statement
Signed-off-by: Paul McQuade <paulmcquad@...il.com>
---
mm/hugetlb.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index eeceeeb..565b403 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -106,11 +106,11 @@ static int hugepage_subpool_get_pages(struct hugepage_subpool *spool,
return 0;
spin_lock(&spool->lock);
- if ((spool->used_hpages + delta) <= spool->max_hpages) {
+ if ((spool->used_hpages + delta) <= spool->max_hpages)
spool->used_hpages += delta;
- } else {
+ else
ret = -ENOMEM;
- }
+
spin_unlock(&spool->lock);
return ret;
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists