summaryrefslogtreecommitdiffstats
path: root/common/spl/spl_fat.c
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2016-05-24 14:55:06 +0200
committerStefano Babic <sbabic@denx.de>2016-05-24 14:55:06 +0200
commit08ca213acadef61748dc62d48b0f5c4bed8b8c2d (patch)
tree36cf415b78775ee63acdfc34d636d2b7d7936a78 /common/spl/spl_fat.c
parentd15a244b059e361475302bccd471e65a48ee2b1f (diff)
parentd7d000311285e4b8d11e089ca13ea456a01be3b8 (diff)
downloadblackbird-obmc-uboot-08ca213acadef61748dc62d48b0f5c4bed8b8c2d.tar.gz
blackbird-obmc-uboot-08ca213acadef61748dc62d48b0f5c4bed8b8c2d.zip
Merge branch 'master' of git://git.denx.de/u-boot
Diffstat (limited to 'common/spl/spl_fat.c')
-rw-r--r--common/spl/spl_fat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c
index 338ea2f092..5b0d96925e 100644
--- a/common/spl/spl_fat.c
+++ b/common/spl/spl_fat.c
@@ -58,7 +58,7 @@ int spl_load_image_fat(struct blk_desc *block_dev,
goto end;
err = spl_parse_image_header(header);
- if (err <= 0)
+ if (err)
goto end;
err = file_fat_read(filename, (u8 *)spl_image.load_addr, 0);
OpenPOWER on IntegriCloud