mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-25 11:30:34 +07:00
Remove unnecessary 'tmp' variable from pci_hp_register().
Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
parent
563f119080
commit
b86ec7ed28
@ -557,7 +557,6 @@ int pci_hp_register(struct hotplug_slot *slot, struct pci_bus *bus, int slot_nr)
|
|||||||
{
|
{
|
||||||
int result;
|
int result;
|
||||||
struct pci_slot *pci_slot;
|
struct pci_slot *pci_slot;
|
||||||
struct hotplug_slot *tmp;
|
|
||||||
|
|
||||||
if (slot == NULL)
|
if (slot == NULL)
|
||||||
return -ENODEV;
|
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. */
|
/* Check if we have already registered a slot with the same name. */
|
||||||
tmp = get_slot_from_name(slot->name);
|
if (get_slot_from_name(slot->name))
|
||||||
if (tmp)
|
|
||||||
return -EEXIST;
|
return -EEXIST;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user