]> git.baikalelectronics.ru Git - uboot.git/commit
spl: spl_mmc.c Correct blk_dread() return value check
authorTom Rini <trini@konsulko.com>
Tue, 15 Aug 2017 01:01:30 +0000 (21:01 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 20 Aug 2017 13:54:30 +0000 (09:54 -0400)
commit6681360f9d3eb7570a5477d88422ee39531cbc34
tree9ae5992d93536267e835a590330d63a72d9682bd
parent99914b83df468c9e2b994ab73b44b7bbdc20c4e2
spl: spl_mmc.c Correct blk_dread() return value check

The function blk_dread will return -ENOSYS on failure or on success the
number of blocks read, which must be the number asked to read (otherwise
it failed somewhere).  Correct this check.

Signed-off-by: Tom Rini <trini@konsulko.com>
common/spl/spl_mmc.c