diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c
index 338ea2f092b8dc9b250626efc91d44e68716e199..5b0d96925ed4436a64f171b82f8a56f5e9a778f7 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);