summaryrefslogtreecommitdiffstats
path: root/firmware/common/rb-loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/common/rb-loader.c')
-rw-r--r--firmware/common/rb-loader.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/common/rb-loader.c b/firmware/common/rb-loader.c
index 0256f21884..61d8b1ddd2 100644
--- a/firmware/common/rb-loader.c
+++ b/firmware/common/rb-loader.c
@@ -112,7 +112,7 @@ int load_firmware(unsigned char* buf, const char* firmware, int buffer_size)
{
ret = load_firmware_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 */