summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2016-01-15 08:48:17 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2016-01-22 08:15:15 +0100
commit3c0cf270c228dca8b5f7af3c4ac32cfeb91b508b (patch)
treeddc6ba374af990fc8643390c0fa1fa5b6b4a9de0 /common
parent777060edcbb5af7043a58e950a433dfd94704dfb (diff)
downloadbarebox-3c0cf270c228dca8b5f7af3c4ac32cfeb91b508b.tar.gz
barebox-3c0cf270c228dca8b5f7af3c4ac32cfeb91b508b.tar.xz
bootm: Do not call uimage_close twice
uimage_close() is called on bootm cleanup, so do not close it in the failure path in bootm_open_os_uimage(). Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/bootm.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/common/bootm.c b/common/bootm.c
index 08125e7bb0..affab24831 100644
--- a/common/bootm.c
+++ b/common/bootm.c
@@ -208,7 +208,6 @@ static int bootm_open_os_uimage(struct image_data *data)
if (data->os->header.ih_arch != IH_ARCH) {
printf("Unsupported Architecture 0x%x\n",
data->os->header.ih_arch);
- uimage_close(data->os);
return -EINVAL;
}