projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17585e2
)
sata: fix sata_Probe return value check
author
Troy Kisky
<troy.kisky@boundarydevices.com>
Fri, 27 Jul 2018 23:45:26 +0000
(16:45 -0700)
committer
Tom Rini
<trini@konsulko.com>
Fri, 10 Aug 2018 14:27:32 +0000
(10:27 -0400)
sata_probe returns 1 for failure, so don't checkout for < 0
fixes:
f19f1ecb6025
dm: sata: Support driver model with the 'sata' command
Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/sata.c
patch
|
blob
|
history
diff --git
a/cmd/sata.c
b/cmd/sata.c
index cc12afb07e697728dce15460fd3189d3d44d5ddf..4f0c6e0137162e1990b115436be2e016a667edbd 100644
(file)
--- a/
cmd/sata.c
+++ b/
cmd/sata.c
@@
-107,8
+107,8
@@
static int do_sata(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
/* If the user has not yet run `sata init`, do it now */
if (sata_curr_device == -1) {
rc = sata_probe(0);
- if (rc
< 0
)
- return
CMD_RET_FAILURE
;
+ if (rc)
+ return
rc
;
sata_curr_device = 0;
}