aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2008-07-24 00:27:03 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-24 13:47:14 -0400
commit75353bed36cfbbfb55bbde0896bbf5a02d9ba355 (patch)
treeda149cfb59d289845dc1ee4d33612314e03be5a1 /mm
parentc748e1340e0de3fa7fed86f8bdf499be9242afff (diff)
mm/hugetlb.c: fix duplicate variable
It's confusing that set_max_huge_pages() contained two different variables named "ret", and although the code works correctly this should be fixed. The inner of the two variables can simply be removed. Spotted by sparse. Signed-off-by: Adrian Bunk <bunk@kernel.org> Cc: "KOSAKI Motohiro" <kosaki.motohiro@jp.fujitsu.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
-rw-r--r--mm/hugetlb.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index ab171274ef21..2c5c9ee4220d 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -603,7 +603,6 @@ static unsigned long set_max_huge_pages(unsigned long count)
603 } 603 }
604 604
605 while (count > persistent_huge_pages) { 605 while (count > persistent_huge_pages) {
606 int ret;
607 /* 606 /*
608 * If this allocation races such that we no longer need the 607 * If this allocation races such that we no longer need the
609 * page, free_huge_page will handle it by freeing the page 608 * page, free_huge_page will handle it by freeing the page