mm: hugetlb braces not needed
Subsystems (2)
PATCH 1/1 mm: hugetlb braces not needed
braces {} are not necessary for any arm of this statement
Signed-off-by Paul McQuade <[email protected]>
--- mm/hugetlb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
mm/hugetlb.c +3 -3
@@ -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;
Signature · 7 lines
1.9.1 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>