scsi: checks for B_OK instead of SCSI_REQ_CMP in scsi_scan_bus()

* scsi_scan_lun() actually returns a status_t
This commit is contained in:
Jérôme Duval
2013-11-09 13:09:16 +01:00
parent ecadc4c696
commit 21f7dc3d40
@@ -282,14 +282,14 @@ scsi_scan_bus(scsi_bus_info *bus)
// anything but LUN 0, so we should probably add a black-list // anything but LUN 0, so we should probably add a black-list
// or something // or something
for (lun = 0; lun <= MAX_LUN_ID; ++lun) { for (lun = 0; lun <= MAX_LUN_ID; ++lun) {
status_t res; status_t status;
SHOW_FLOW(3, "lun: %d", lun); SHOW_FLOW(3, "lun: %d", lun);
res = scsi_scan_lun(bus, target_id, lun); status = scsi_scan_lun(bus, target_id, lun);
// if there is no device at lun 0, there's probably no device at all // if there is no device at lun 0, there's probably no device at all
if (lun == 0 && res != SCSI_REQ_CMP) if (lun == 0 && status != B_OK)
break; break;
} }
} }