From: Rafael J. Wysocki Date: Mon, 27 May 2013 10:58:46 +0000 (+0200) Subject: Memory hotplug / ACPI: Simplify memory removal X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~19^2~19^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=242831eb15a06fa4414eaa705fdc6dd432ab98d1;p=pandora-kernel.git 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 Reviewed-by: Toshi Kani --- Reading git-diff-tree failed