PCI: Remove unused variables

This fixes "set but not used" warnings found via "make W=1".

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
Bjorn Helgaas
2013-04-12 11:18:01 -06:00
parent c3139ba212
commit b638d7e7b8
3 changed files with 5 additions and 16 deletions

View File

@@ -520,10 +520,8 @@ int pci_hp_deregister(struct hotplug_slot *hotplug)
int __must_check pci_hp_change_slot_info(struct hotplug_slot *hotplug,
struct hotplug_slot_info *info)
{
struct pci_slot *slot;
if (!hotplug || !info)
return -ENODEV;
slot = hotplug->pci_slot;
memcpy(hotplug->info, info, sizeof(struct hotplug_slot_info));