]> git.baikalelectronics.ru Git - kernel.git/commit
mm/page_alloc.c:free_area_init_nodes() fix inappropriate use of enum
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 16 Oct 2008 05:01:07 +0000 (22:01 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 16 Oct 2008 18:21:29 +0000 (11:21 -0700)
commit26c826793bb304c340ae5bce9485b220b1762d5f
treec098cda0a6172ea9e00fe25d151b87cd1609176c
parent8d20d54663e6a7e8cba4bc6cc936a9f29839e421
mm/page_alloc.c:free_area_init_nodes() fix inappropriate use of enum

Local variable `i' is a) misleadingly-named for an `enum zone_type' and b)
used for indexing zones as well as nodes as well as node_maps.

Make it an `int'.

Reported-by: Frans Pop <elendil@planet.nl>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_alloc.c