From 31a5c6e4f25704f51f9a1373f0784034306d4cf1 Mon Sep 17 00:00:00 2001 From: Nishanth Aravamudan Date: Sun, 15 Jul 2007 23:38:02 -0700 Subject: 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- mm/hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mm') diff --git a/mm/hugetlb.c b/mm/hugetlb.c index a45d1f0691ce..eaba7d6b25a0 100644 --- a/mm/hugetlb.c +++ b/mm/hugetlb.c @@ -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; -- cgit v1.2.3