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>
This commit is contained in:
parent
f0c0b2b808
commit
31a5c6e4f2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue