Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b86ec7ed authored by Kenji Kaneshige's avatar Kenji Kaneshige Committed by Jesse Barnes
Browse files

Remove unnecessary 'tmp' variable from pci_hp_register().

parent 563f1190
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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;

	/*