diff options
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index e2e5e3088816..d8748a4a18a7 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c | |||
@@ -1107,11 +1107,7 @@ u8 acpiphp_get_power_status(struct acpiphp_slot *slot) | |||
1107 | */ | 1107 | */ |
1108 | u8 acpiphp_get_latch_status(struct acpiphp_slot *slot) | 1108 | u8 acpiphp_get_latch_status(struct acpiphp_slot *slot) |
1109 | { | 1109 | { |
1110 | unsigned int sta; | 1110 | return !(get_slot_status(slot) & ACPI_STA_DEVICE_UI); |
1111 | |||
1112 | sta = get_slot_status(slot); | ||
1113 | |||
1114 | return (sta & ACPI_STA_DEVICE_UI) ? 0 : 1; | ||
1115 | } | 1111 | } |
1116 | 1112 | ||
1117 | 1113 | ||
@@ -1121,9 +1117,5 @@ u8 acpiphp_get_latch_status(struct acpiphp_slot *slot) | |||
1121 | */ | 1117 | */ |
1122 | u8 acpiphp_get_adapter_status(struct acpiphp_slot *slot) | 1118 | u8 acpiphp_get_adapter_status(struct acpiphp_slot *slot) |
1123 | { | 1119 | { |
1124 | unsigned int sta; | 1120 | return !!get_slot_status(slot); |
1125 | |||
1126 | sta = get_slot_status(slot); | ||
1127 | |||
1128 | return (sta == 0) ? 0 : 1; | ||
1129 | } | 1121 | } |