aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/pci/hotplug/pci_hotplug_core.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c
index b514162125fb..5f85b1b120e3 100644
--- a/drivers/pci/hotplug/pci_hotplug_core.c
+++ b/drivers/pci/hotplug/pci_hotplug_core.c
@@ -557,7 +557,6 @@ int pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, int slot_nr)
557{ 557{
558 int result; 558 int result;
559 struct pci_slot *pci_slot; 559 struct pci_slot *pci_slot;
560 struct hotplug_slot *tmp;
561 560
562 if (slot == NULL) 561 if (slot == NULL)
563 return -ENODEV; 562 return -ENODEV;
@@ -570,8 +569,7 @@ int pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, int slot_nr)
570 } 569 }
571 570
572 /* Check if we have already registered a slot with the same name. */ 571 /* Check if we have already registered a slot with the same name. */
573 tmp = get_slot_from_name(slot->name); 572 if (get_slot_from_name(slot->name))
574 if (tmp)
575 return -EEXIST; 573 return -EEXIST;
576 574
577 /* 575 /*