aboutsummaryrefslogtreecommitdiffstats
path: root/mm/hugetlb.c
diff options
context:
space:
mode:
authorNishanth Aravamudan <nacc@us.ibm.com>2007-07-16 02:38:02 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-16 12:05:35 -0400
commit31a5c6e4f25704f51f9a1373f0784034306d4cf1 (patch)
tree873acb320c44558e831724088695d13110e1f093 /mm/hugetlb.c
parentf0c0b2b808f232741eadac272bd4bc51f18df0f4 (diff)
hugetlb: remove unnecessary nid initialization
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>
Diffstat (limited to 'mm/hugetlb.c')
-rw-r--r--mm/hugetlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/hugetlb.c b/mm/hugetlb.c
index a45d1f0691c..eaba7d6b25a 100644
--- a/mm/hugetlb.c
+++ b/mm/hugetlb.c
@@ -66,7 +66,7 @@ static void enqueue_huge_page(struct page *page)
66static struct page *dequeue_huge_page(struct vm_area_struct *vma, 66static struct page *dequeue_huge_page(struct vm_area_struct *vma,
67 unsigned long address) 67 unsigned long address)
68{ 68{
69 int nid = numa_node_id(); 69 int nid;
70 struct page *page = NULL; 70 struct page *page = NULL;
71 struct zonelist *zonelist = huge_zonelist(vma, address); 71 struct zonelist *zonelist = huge_zonelist(vma, address);
72 struct zone **z; 72 struct zone **z;