diff options
author | Alexander Kurz <akurz@blala.de> | 2016-07-17 17:53:16 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2016-07-18 07:55:17 +0200 |
commit | 4145dfc277593f73c037d8963c3f01e7b1906497 (patch) | |
tree | 29d122d8a1a4693cd5a7058cd17582940112008d /scripts/imx | |
parent | e0916fe82f3511d7487760401d0192a6641d94a0 (diff) | |
download | barebox-4145dfc277593f73c037d8963c3f01e7b1906497.tar.gz barebox-4145dfc277593f73c037d8963c3f01e7b1906497.tar.xz |
scripts: imx-usb-loader: remove useless variable
Remove a variable raising complexity for no reason.
Signed-off-by: Alexander Kurz <akurz@blala.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts/imx')
-rw-r--r-- | scripts/imx/imx-usb-loader.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/imx/imx-usb-loader.c b/scripts/imx/imx-usb-loader.c index 92b828f0b0..06ea05ace0 100644 --- a/scripts/imx/imx-usb-loader.c +++ b/scripts/imx/imx-usb-loader.c @@ -1029,7 +1029,6 @@ static int do_irom_download(struct usb_work *curr, int verify) unsigned char *buf = NULL; unsigned char *image; unsigned char *verify_buffer = NULL; - unsigned char *p; unsigned char tmp[64]; unsigned dladdr = 0; unsigned max_length; @@ -1102,7 +1101,6 @@ static int do_irom_download(struct usb_work *curr, int verify) image = buf + skip; - p = image; cnt -= skip; fsize -= skip; @@ -1120,7 +1118,7 @@ static int do_irom_download(struct usb_work *curr, int verify) goto cleanup; } - memcpy(verify_buffer, p, 64); + memcpy(verify_buffer, image, 64); if ((type == FT_APP) && (usb_id->mach_id->mode != MODE_HID)) { type = FT_LOAD_ONLY; |