diff --git a/mm/memory_hotplug.c b/mm/memory_hotplug.c index e486d32557e0fc94b8645ad857e0e0daec51dbc5..ccaec2efe15ad65993b15f8c1ba7582c0a5a9a1d 100644 --- a/mm/memory_hotplug.c +++ b/mm/memory_hotplug.c @@ -1648,12 +1648,6 @@ static int __ref __offline_pages(unsigned long start_pfn, struct zone *zone; struct memory_notify arg; - /* at least, alignment against pageblock is necessary */ - if (!IS_ALIGNED(start_pfn, pageblock_nr_pages)) - return -EINVAL; - if (!IS_ALIGNED(end_pfn, pageblock_nr_pages)) - return -EINVAL; - mem_hotplug_begin(); /* This makes hotplug much easier...and readable.