]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ACPI / hotplug / PCI: Sanitize acpiphp_get_(latch)|(adapter)_status()
authorMika Westerberg <mika.westerberg@linux.intel.com>
Sat, 13 Jul 2013 21:27:26 +0000 (23:27 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Jul 2013 02:00:27 +0000 (04:00 +0200)
commit1ad3790ac7cfac699993a3f2e189a69a82f8fe4d
tree223cc6048a3ef16c2c90e752e4c636e05be07680
parentc38f82cf1b7dc8aad2bce8e30113fd6aa3159dab
ACPI / hotplug / PCI: Sanitize acpiphp_get_(latch)|(adapter)_status()

There is no need for a temporary variable and all the tricks with
ternary operators in acpiphp_get_(latch)|(adapter)_status(). Change
those functions to be a bit more straightforward.

[rjw: Changelog]
Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/hotplug/acpiphp_glue.c