summaryrefslogtreecommitdiffstats
path: root/firmware/linuxboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/linuxboot.c')
-rw-r--r--firmware/linuxboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/firmware/linuxboot.c b/firmware/linuxboot.c
index f9732f6ace..419044b5a9 100644
--- a/firmware/linuxboot.c
+++ b/firmware/linuxboot.c
@@ -221,8 +221,7 @@ int uimage_load(struct uimage_header* uh, size_t* out_size,
ret = 0;
err:
- if(state_h > 0)
- core_free(state_h);
+ core_free(state_h);
if(out_h > 0) {
if(ret == 0)
ret = out_h;