From: Kenji Kaneshige Date: Fri, 20 Jun 2008 02:54:06 +0000 (+0900) Subject: Remove unnecessary 'tmp' variable from pci_hp_register(). X-Git-Tag: v2.6.27-rc1~1046^2~28 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b86ec7ed2877f560ff069e8ed1b433a9005619c6;p=linux-2.6-omap-h63xx.git Remove unnecessary 'tmp' variable from pci_hp_register(). Signed-off-by: Kenji Kaneshige Signed-off-by: Jesse Barnes --- diff --git a/drivers/pci/hotplug/pci_hotplug_core.c b/drivers/pci/hotplug/pci_hotplug_core.c index b514162125f..5f85b1b120e 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) { int result; struct pci_slot *pci_slot; - struct hotplug_slot *tmp; if (slot == NULL) return -ENODEV; @@ -570,8 +569,7 @@ int pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, int slot_nr) } /* Check if we have already registered a slot with the same name. */ - tmp = get_slot_from_name(slot->name); - if (tmp) + if (get_slot_from_name(slot->name)) return -EEXIST; /*