From: Adrian Bunk Date: Thu, 24 Jul 2008 04:27:03 +0000 (-0700) Subject: mm/hugetlb.c: fix duplicate variable X-Git-Tag: MMI-PSA29.97-13-9~33416 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=75353bed36cfbbfb55bbde0896bbf5a02d9ba355;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Cc: "KOSAKI Motohiro" Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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) } while (count > persistent_huge_pages) { - int ret; /* * If this allocation races such that we no longer need the * page, free_huge_page will handle it by freeing the page