summaryrefslogtreecommitdiff
path: root/boot/image.c
diff options
context:
space:
mode:
Diffstat (limited to 'boot/image.c')
-rw-r--r--boot/image.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/boot/image.c b/boot/image.c
index bacf5146e13..fc774d605d1 100644
--- a/boot/image.c
+++ b/boot/image.c
@@ -528,10 +528,10 @@ int image_decomp(int comp, ulong load, ulong image_start, int type,
printf("Unimplemented compression type %d\n", comp);
return ret;
}
- if (ret)
- return ret;
*load_end = load + image_len;
+ if (ret)
+ return ret;
return 0;
}