]> git.sur5r.net Git - u-boot/commit
SPL: fat: Fix spl_parse_image_header() return value handling
authorTom Rini <trini@konsulko.com>
Mon, 23 May 2016 15:51:13 +0000 (11:51 -0400)
committerTom Rini <trini@konsulko.com>
Mon, 23 May 2016 15:51:13 +0000 (11:51 -0400)
commitd550e82e4efebf5995809e38e8fb029b8fe6e861
treebe83b47399044d43e439256cd132407db9ed2ca1
parent5f89a15e1630e9050c8b1b5307ccd800e4596ce5
SPL: fat: Fix spl_parse_image_header() return value handling

The spl_parse_image_header() can return 0 and it is not an error.
Only treat non-zero return value as an error.

Signed-off-by: Marek Vasut <marex@denx.de>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Peng Fan <van.freenix@gmail.com>
Reviewed-by: Stefano Babic <sbabic@denx.de>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/spl/spl_fat.c