hugetlb: remove unnecessary nid initialization
authorNishanth Aravamudan <nacc@us.ibm.com>
Mon, 16 Jul 2007 06:38:02 +0000 (23:38 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 16 Jul 2007 16:05:35 +0000 (09:05 -0700)
nid is initialized to numa_node_id() but will either be overwritten in
the loop or not used in the conditional. So remove the initialization.

Signed-off-by: Nishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/hugetlb.c

index a45d1f0691cecb63e088d02fb3ff287f025e4d78..eaba7d6b25a01197dd10dc93c22a4ed1ef948db3 100644 (file)
@@ -66,7 +66,7 @@ static void enqueue_huge_page(struct page *page)
 static struct page *dequeue_huge_page(struct vm_area_struct *vma,
                                unsigned long address)
 {
-       int nid = numa_node_id();
+       int nid;
        struct page *page = NULL;
        struct zonelist *zonelist = huge_zonelist(vma, address);
        struct zone **z;