summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorAndrey Smirnov <andrew.smirnov@gmail.com>2019-02-26 12:06:36 -0800
committerSascha Hauer <s.hauer@pengutronix.de>2019-02-27 09:20:28 +0100
commitb80114fd918cb46b6da4cd411e0e2c39d7498d61 (patch)
tree8ee6c35c66b05c78677d4de0a310fafc6942a3e1 /commands
parentc86f65cbb786613c64985773dba5faea0fa136cb (diff)
downloadbarebox-b80114fd918cb46b6da4cd411e0e2c39d7498d61.tar.gz
barebox-b80114fd918cb46b6da4cd411e0e2c39d7498d61.tar.xz
commands: uimage: Drop needless variable in uimage_flush()
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/uimage.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/commands/uimage.c b/commands/uimage.c
index 7c2dca41ec..982da7101a 100644
--- a/commands/uimage.c
+++ b/commands/uimage.c
@@ -13,11 +13,7 @@ static int uimage_fd;
static int uimage_flush(void *buf, unsigned int len)
{
- int ret;
-
- ret = write_full(uimage_fd, buf, len);
-
- return ret;
+ return write_full(uimage_fd, buf, len);
}
static int do_uimage(int argc, char *argv[])