summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-02-13 09:24:47 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2020-02-13 11:43:21 +0100
commit315174e60e4be1463411e2e7ffe915ac649c60c8 (patch)
treeace52a308335b59f852d8995a2b0bce4ad565d61 /scripts
parent087e6f4586bf52d04d2052d83f9ceadadaa41c5f (diff)
downloadbarebox-315174e60e4be1463411e2e7ffe915ac649c60c8.tar.gz
barebox-315174e60e4be1463411e2e7ffe915ac649c60c8.tar.xz
scripts: imx-usb-loader: remove unnecessary check
file_base is the address where the image would be loaded to if we were not skipping the unused space before the header in the image. I can't see any reason why this should be higher than the download address. Drop this superfluous check. Tested on i.MX51, i.MX53 and i.MX6 Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/imx/imx-usb-loader.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c
index 16df1ec1d5..ebe0eea050 100644
--- a/scripts/imx/imx-usb-loader.c
+++ b/scripts/imx/imx-usb-loader.c
@@ -1401,11 +1401,6 @@ static int do_irom_download(struct usb_work *curr, int verify)
dladdr = header_addr;
}
- if (file_base > dladdr) {
- max_length -= (file_base - dladdr);
- dladdr = file_base;
- }
-
skip = dladdr - file_base;
image = buf + skip;