Skip to content

Commit

Permalink
mm: Remove unused parameter of pages_correctly_reserved()
Browse files Browse the repository at this point in the history
nr_pages is not used in pages_correctly_reserved().
So remove it.

Signed-off-by: Tang Chen <[email protected]>
Reviewed-by: Wang Shilong <[email protected]>
Reviewed-by: Wen Congyang <[email protected]>
Acked-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
tang-chen authored and torvalds committed Apr 29, 2013
1 parent 7a6f93b commit 6056d61
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions drivers/base/memory.c
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,7 @@ int memory_isolate_notify(unsigned long val, void *v)
* The probe routines leave the pages reserved, just as the bootmem code does.
* Make sure they're still that way.
*/
static bool pages_correctly_reserved(unsigned long start_pfn,
unsigned long nr_pages)
static bool pages_correctly_reserved(unsigned long start_pfn)
{
int i, j;
struct page *page;
Expand Down Expand Up @@ -256,7 +255,7 @@ memory_block_action(unsigned long phys_index, unsigned long action, int online_t

switch (action) {
case MEM_ONLINE:
if (!pages_correctly_reserved(start_pfn, nr_pages))
if (!pages_correctly_reserved(start_pfn))
return -EBUSY;

ret = online_pages(start_pfn, nr_pages, online_type);
Expand Down

0 comments on commit 6056d61

Please sign in to comment.