commit | 6bafa5a4bd7c4d85f86178aee8adb6040d8df4a3 | [log] [tgz] |
---|---|---|
author | Tom Rini <trini@konsulko.com> | Mon Aug 14 21:00:44 2017 -0400 |
committer | Marek Vasut <marex@denx.de> | Mon Aug 21 11:31:11 2017 +0200 |
tree | 2a662c93b6fefcb482de20dec4a82f6d4e0856a3 | |
parent | 2341c80cd261291aff2c58b70bacc053ecca9d1d [diff] |
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>