Commit 31a5c6e4 authored by Nishanth Aravamudan's avatar Nishanth Aravamudan Committed by Linus Torvalds

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: default avatarNishanth Aravamudan <nacc@us.ibm.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f0c0b2b8
...@@ -66,7 +66,7 @@ static void enqueue_huge_page(struct page *page) ...@@ -66,7 +66,7 @@ static void enqueue_huge_page(struct page *page)
static struct page *dequeue_huge_page(struct vm_area_struct *vma, static struct page *dequeue_huge_page(struct vm_area_struct *vma,
unsigned long address) unsigned long address)
{ {
int nid = numa_node_id(); int nid;
struct page *page = NULL; struct page *page = NULL;
struct zonelist *zonelist = huge_zonelist(vma, address); struct zonelist *zonelist = huge_zonelist(vma, address);
struct zone **z; struct zone **z;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment