braces {} are not necessary for any arm of this statement Signed-off-by: Paul McQuade <paulmcquad@xxxxxxxxx> --- 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, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>