Revision 7f5b7d3e hw/pci-hotplug.c

b/hw/pci-hotplug.c
105 105
{
106 106
    int dom, pci_bus;
107 107
    unsigned slot;
108
    int type, bus;
108
    int type;
109 109
    PCIDevice *dev;
110 110
    DriveInfo *dinfo = NULL;
111 111
    const char *pci_addr = qdict_get_str(qdict, "pci_addr");
......
119 119
        goto err;
120 120
    }
121 121
    type = dinfo->type;
122
    bus = drive_get_max_bus (type);
123 122

  
124 123
    switch (type) {
125 124
    case IF_SCSI:

Also available in: Unified diff