OSDN Git Service

ACPI / hotplug / PCI: Refactor slot allocation code in register_slot()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 13 Jul 2013 21:27:24 +0000 (23:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Jul 2013 02:00:22 +0000 (04:00 +0200)
commitac372338b750648355bcc64bb0bca13fc6f0a3d5
treed8b0a7488a2b63d47328700f0a9be1183209bea2
parentf28181109e85b49b5b4b1c381d889b4ea7315988
ACPI / hotplug / PCI: Refactor slot allocation code in register_slot()

To make the code in register_slot() a bit easier to follow, change
the way the slot allocation part is organized.  Drop one local
variable that's not used any more after that modification.

This code change should not lead to any changes in behavior.

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