Revision caad4eb3 hw/scsi/esp-pci.c
b/hw/scsi/esp-pci.c | ||
---|---|---|
346 | 346 |
DeviceState *d = DEVICE(dev); |
347 | 347 |
ESPState *s = &pci->esp; |
348 | 348 |
uint8_t *pci_conf; |
349 |
Error *err = NULL; |
|
349 | 350 |
|
350 | 351 |
pci_conf = dev->config; |
351 | 352 |
|
... | ... | |
364 | 365 |
|
365 | 366 |
scsi_bus_new(&s->bus, d, &esp_pci_scsi_info, NULL); |
366 | 367 |
if (!d->hotplugged) { |
367 |
return scsi_bus_legacy_handle_cmdline(&s->bus); |
|
368 |
scsi_bus_legacy_handle_cmdline(&s->bus, &err); |
|
369 |
if (err != NULL) { |
|
370 |
error_free(err); |
|
371 |
return -1; |
|
372 |
} |
|
368 | 373 |
} |
369 | 374 |
return 0; |
370 | 375 |
} |
Also available in: Unified diff