summaryrefslogtreecommitdiff
path: root/include/scsi.h
diff options
context:
space:
mode:
authorDavid Lechner <[email protected]>2026-03-26 17:59:24 -0500
committerTom Rini <[email protected]>2026-04-08 11:07:07 -0600
commite5d8ad260bb7de1729a6454e8b95a83e629dff7a (patch)
treedd898736d1b3f3c1319ee3d93f1975e372b19060 /include/scsi.h
parentad4831d7a51d53bdb5ed0493fdc7bb510ce3f9a5 (diff)
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 <[email protected]>
Diffstat (limited to 'include/scsi.h')
0 files changed, 0 insertions, 0 deletions