]> git.dujemihanovic.xyz Git - u-boot.git/commit
fb_mmc.c: Correct blk_dread() return value checks
authorTom Rini <trini@konsulko.com>
Tue, 15 Aug 2017 01:00:44 +0000 (21:00 -0400)
committerMarek Vasut <marex@denx.de>
Mon, 21 Aug 2017 09:31:11 +0000 (11:31 +0200)
commit6bafa5a4bd7c4d85f86178aee8adb6040d8df4a3
tree2a662c93b6fefcb482de20dec4a82f6d4e0856a3
parent2341c80cd261291aff2c58b70bacc053ecca9d1d
fb_mmc.c: Correct blk_dread() return value checks

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.

Cc: Lukasz Majewski <lukma@denx.de>
Signed-off-by: Tom Rini <trini@konsulko.com>
common/fb_mmc.c