summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorAlexander Shiyan <shc_work@mail.ru>2014-02-16 08:40:50 +0400
committerSascha Hauer <s.hauer@pengutronix.de>2014-02-17 08:06:11 +0100
commitf62f3affa84eefc6d834f26fdb55aebb1e7ce8e2 (patch)
treeaad551d61d9f3b7f5abda2791f3b10cd44d94799 /scripts
parent07a6c818ef59d5e9e6962f2452bbc76f8fa129b2 (diff)
downloadbarebox-f62f3affa84eefc6d834f26fdb55aebb1e7ce8e2.tar.gz
barebox-f62f3affa84eefc6d834f26fdb55aebb1e7ce8e2.tar.xz
scripts/kwboot: Remove redundant assignment
Signed-off-by: Alexander Shiyan <shc_work@mail.ru> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kwboot.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/scripts/kwboot.c b/scripts/kwboot.c
index 81da3e81bc..e06866052b 100644
--- a/scripts/kwboot.c
+++ b/scripts/kwboot.c
@@ -552,7 +552,6 @@ kwboot_mmap_image(const char *path, size_t *size, int prot)
void *img;
rc = -1;
- fd = -1;
img = NULL;
fd = open(path, O_RDONLY);