]> git.openfabrics.org - ~emulex/infiniband.git/commit
ACPI / hotplug / PCI: Simplify hotplug_event()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 3 Feb 2014 23:40:46 +0000 (00:40 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 5 Feb 2014 16:41:00 +0000 (17:41 +0100)
commitb75cece1a79a6259185442004e040511ed3a7341
tree36c84e5c1fbb2e633f23f659d1406981b30bf8fb
parent661b40644190eb5987907584920cb11a4a2c7a9e
ACPI / hotplug / PCI: Simplify hotplug_event()

A few lines of code can be cut from hotplug_event() by defining
and initializing the slot variable at the top of the function,
so do that.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Tested-by: Mika Westerberg <mika.westerberg@linux.intel.com>
drivers/pci/hotplug/acpiphp_glue.c