]> git.ipfire.org Git - thirdparty/u-boot.git/commit
sata: fix sata_Probe return value check
authorTroy Kisky <troy.kisky@boundarydevices.com>
Fri, 27 Jul 2018 23:45:26 +0000 (16:45 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 10 Aug 2018 14:27:32 +0000 (10:27 -0400)
commit7e83f1d5e819c76d50fc4daee9d4b5348bf3dc0f
tree2aab091303b03c90dfbe81636e3e34bfef475c0a
parent17585e2dc33c23b3ea37daf485ced880c8fea3f8
sata: fix sata_Probe return value check

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