projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dm: scsi: Adjust return value of scsi_exec()
[platform/kernel/u-boot.git]
/
drivers
/
ata
/
ahci.c
diff --git
a/drivers/ata/ahci.c
b/drivers/ata/ahci.c
index
5a20b97
..
3528a1f
100644
(file)
--- a/
drivers/ata/ahci.c
+++ b/
drivers/ata/ahci.c
@@
-960,14
+960,14
@@
static int ahci_scsi_exec(struct udevice *dev, struct scsi_cmd *pccb)
break;
default:
printf("Unsupport SCSI command 0x%02x\n", pccb->cmd[0]);
- return
false
;
+ return
-ENOTSUPP
;
}
if (ret) {
debug("SCSI command 0x%02x ret errno %d\n", pccb->cmd[0], ret);
- return
false
;
+ return
ret
;
}
- return
true
;
+ return
0
;
}