mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
PCI: pciehp: Remove useless pciehp_get_latch_status() calls
Long ago, we updated a "switch_save" field based on the latch status. But
switch_save was unused, and ed6cbcf2ac
("[PATCH] pciehp: miscellaneous
cleanups") removed it.
We no longer use the latch status, so remove calls to
pciehp_get_latch_status(). No functional change intended.
Tested-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
parent
6e49b304e3
commit
29a654e59f
@ -389,7 +389,6 @@ static void interrupt_event_handler(struct work_struct *work)
|
|||||||
int pciehp_enable_slot(struct slot *p_slot)
|
int pciehp_enable_slot(struct slot *p_slot)
|
||||||
{
|
{
|
||||||
u8 getstatus = 0;
|
u8 getstatus = 0;
|
||||||
int rc;
|
|
||||||
struct controller *ctrl = p_slot->ctrl;
|
struct controller *ctrl = p_slot->ctrl;
|
||||||
|
|
||||||
pciehp_get_adapter_status(p_slot, &getstatus);
|
pciehp_get_adapter_status(p_slot, &getstatus);
|
||||||
@ -415,13 +414,7 @@ int pciehp_enable_slot(struct slot *p_slot)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pciehp_get_latch_status(p_slot, &getstatus);
|
return board_added(p_slot);
|
||||||
|
|
||||||
rc = board_added(p_slot);
|
|
||||||
if (rc)
|
|
||||||
pciehp_get_latch_status(p_slot, &getstatus);
|
|
||||||
|
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user