mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-02 09:46:37 +03:00
scsi: return ENODEV in scsi_get_blk_by_uuid()
Change scsi_get_blk_by_uuid() to return -ENODEV instead of -1 on error. Other scsi_* functions return an error code rather than -1. 1 is EPERM, which doesn't make sense here. So we use ENODEV instead. The only caller only checks for !success, so changing the value has no effect on the caller. Signed-off-by: David Lechner <dlechner@baylibre.com>
This commit is contained in:
@@ -50,7 +50,7 @@ int scsi_get_blk_by_uuid(const char *uuid,
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
int scsi_bus_reset(struct udevice *dev)
|
||||
|
||||
Reference in New Issue
Block a user