projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sata: fix sata_Probe return value check
[oweals/u-boot.git]
/
cmd
/
sata.c
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;
}