summaryrefslogtreecommitdiff
path: root/drivers/pci/hotplug/cpci_hotplug_core.c
diff options
context:
space:
mode:
authorQuentin Lambert <lambert.quentin@gmail.com>2014-09-07 18:02:47 (GMT)
committerBjorn Helgaas <bhelgaas@google.com>2014-09-24 13:49:20 (GMT)
commit656f978f9af9d8d77436e8159f51f7aa1e673309 (patch)
treed1cad3653ac41062a854eb0bc0f25fc03767f766 /drivers/pci/hotplug/cpci_hotplug_core.c
parent382a9c9adc1cd540f5b714b65db315fc1c0b553d (diff)
downloadlinux-656f978f9af9d8d77436e8159f51f7aa1e673309.tar.xz
PCI: Remove unnecessary curly braces
Remove curly braces in simple "if" cases. No functional change. Signed-off-by: Quentin Lambert <lambert.quentin@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/hotplug/cpci_hotplug_core.c')
-rw-r--r--drivers/pci/hotplug/cpci_hotplug_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/cpci_hotplug_core.c b/drivers/pci/hotplug/cpci_hotplug_core.c
index e09cf78..8359e29 100644
--- a/drivers/pci/hotplug/cpci_hotplug_core.c
+++ b/drivers/pci/hotplug/cpci_hotplug_core.c
@@ -467,9 +467,9 @@ check_slots(void)
__func__, slot_name(slot), hs_csr);
if (!slot->extracting) {
- if (update_latch_status(slot->hotplug_slot, 0)) {
+ if (update_latch_status(slot->hotplug_slot, 0))
warn("failure to update latch file");
- }
+
slot->extracting = 1;
atomic_inc(&extracting);
}