]> git.ipfire.org Git - people/ms/u-boot.git/commit
fs/fat: Correct blk_dread() return value check
authorTom Rini <trini@konsulko.com>
Tue, 15 Aug 2017 01:02:08 +0000 (21:02 -0400)
committerTom Rini <trini@konsulko.com>
Sun, 20 Aug 2017 13:54:31 +0000 (09:54 -0400)
commit42a9f147d87b6e4442d6c3074c34b08854f36ef5
treee04b67e130a8ae9e974770e9ef166d8f26d94403
parent9585dd3fffaa8b7bd37044cc1870a45f2ca0ee3d
fs/fat: 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>
fs/fat/fat.c