]> git.baikalelectronics.ru Git - kernel.git/commit
mm/hugetlb.c: fix duplicate variable
authorAdrian Bunk <bunk@kernel.org>
Thu, 24 Jul 2008 04:27:03 +0000 (21:27 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Jul 2008 17:47:14 +0000 (10:47 -0700)
commitd6f7ff6ecb46dd061c6f5f85cbc669ddc324e299
treeda149cfb59d289845dc1ee4d33612314e03be5a1
parent786480e1eccabd2aa23a3c45144afd149621173a
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>
mm/hugetlb.c