summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/pp/mi4-loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/target/arm/pp/mi4-loader.c')
-rw-r--r--firmware/target/arm/pp/mi4-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/target/arm/pp/mi4-loader.c b/firmware/target/arm/pp/mi4-loader.c
index f609e3ff7a..14bb5e6f47 100644
--- a/firmware/target/arm/pp/mi4-loader.c
+++ b/firmware/target/arm/pp/mi4-loader.c
@@ -256,7 +256,7 @@ int load_mi4(unsigned char* buf, const char* firmware, unsigned int buffer_size)
{
ret = load_mi4_filename(buf, filename, buffer_size);
/* if firmware has no boot_data don't load from external drive */
- if (write_bootdata(buf, ret, i) <= 0)
+ if (!write_bootdata(buf, ret, i))
ret = EKEY_NOT_FOUND;
}
/* if ret is valid breaks from loop to continue loading */