Skip to content

Commit 7b5a0b6

Browse files
Charan Teja Kallaakpm00
authored andcommitted
mm/page_ext: remove unused variable in offline_page_ext
Remove unused variable 'nid' in offline_page_ext(). This is not used since the page_ext code inception. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Charan Teja Kalla <[email protected]> Acked-by: Michal Hocko <[email protected]> Reviewed-by: Anshuman Khandual <[email protected]> Cc: Roman Gushchin <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Shakeel Butt <[email protected]> Cc: Muchun Song <[email protected]> Cc: Pavan Kondeti <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 9d0d946 commit 7b5a0b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mm/page_ext.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ static int __meminit online_page_ext(unsigned long start_pfn,
336336
}
337337

338338
static int __meminit offline_page_ext(unsigned long start_pfn,
339-
unsigned long nr_pages, int nid)
339+
unsigned long nr_pages)
340340
{
341341
unsigned long start, end, pfn;
342342

@@ -362,11 +362,11 @@ static int __meminit page_ext_callback(struct notifier_block *self,
362362
break;
363363
case MEM_OFFLINE:
364364
offline_page_ext(mn->start_pfn,
365-
mn->nr_pages, mn->status_change_nid);
365+
mn->nr_pages);
366366
break;
367367
case MEM_CANCEL_ONLINE:
368368
offline_page_ext(mn->start_pfn,
369-
mn->nr_pages, mn->status_change_nid);
369+
mn->nr_pages);
370370
break;
371371
case MEM_GOING_OFFLINE:
372372
break;

0 commit comments

Comments
 (0)