Memory hotplug / ACPI: Simplify memory removal
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 May 2013 10:58:46 +0000 (12:58 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 1 Jun 2013 19:37:10 +0000 (21:37 +0200)
commit242831eb15a06fa4414eaa705fdc6dd432ab98d1
tree65b57b16800e27b0354ef72a4fe1aecbf8b6d89a
parent303bfdb1a14d0460feb859cd008ff81da36b517c
Memory hotplug / ACPI: Simplify memory removal

Now that the memory offlining should be taken care of by the
companion device offlining code in acpi_scan_hot_remove(), the
ACPI memory hotplug driver doesn't need to offline it in
remove_memory() any more.  Moreover, since the return value of
remove_memory() is not used, it's better to make it be a void
function and trigger a BUG() if the memory scheduled for removal is
not offline.

Change the code in accordance with the above observations.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Toshi Kani <toshi.kani@hp.com>
drivers/acpi/acpi_memhotplug.c
include/linux/memory_hotplug.h
mm/memory_hotplug.c