]> git.ipfire.org Git - people/arne_f/kernel.git/commit
Xen / ACPI / processor: Remove unneeded NULL check
authorHanjun Guo <hanjun.guo@linaro.org>
Mon, 11 May 2015 04:17:15 +0000 (12:17 +0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 13 May 2015 21:28:15 +0000 (23:28 +0200)
commitc867d83855a6c50ac1a33960c9d50a77ff636f64
tree028c69aafae4887a16de24440e263cc1db77492e
parent16eac059a6800f640423b7b6e2e9fc7091bad102
Xen / ACPI / processor: Remove unneeded NULL check

Before xen_acpi_processor_enable() is called, struct acpi_processor *pr is
allocated in xen_acpi_processor_add() and checked if it's NULL, so no need
to check again when passed to xen_acpi_processor_enable(), just remove it.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
CC: Boris Ostrovsky <boris.ostrovsky@oracle.com>
CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/xen/xen-acpi-cpuhotplug.c