Revision 22d6aa03

b/hw/scsi/megasas.c
2098 2098

  
2099 2099
static int megasas_scsi_init(PCIDevice *dev)
2100 2100
{
2101
    DeviceState *d = DEVICE(dev);
2101 2102
    MegasasState *s = MEGASAS(dev);
2102 2103
    uint8_t *pci_conf;
2103 2104
    int i, bar_type;
......
2170 2171
    }
2171 2172

  
2172 2173
    scsi_bus_new(&s->bus, DEVICE(dev), &megasas_scsi_info, NULL);
2173
    scsi_bus_legacy_handle_cmdline(&s->bus);
2174
    if (!d->hotplugged) {
2175
        return scsi_bus_legacy_handle_cmdline(&s->bus);
2176
    }
2174 2177
    return 0;
2175 2178
}
2176 2179

  

Also available in: Unified diff