Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 75353bed authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

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: default avatarAdrian Bunk <bunk@kernel.org>
Cc:  "KOSAKI Motohiro" <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c748e134
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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