From b80114fd918cb46b6da4cd411e0e2c39d7498d61 Mon Sep 17 00:00:00 2001 From: Andrey Smirnov Date: Tue, 26 Feb 2019 12:06:36 -0800 Subject: commands: uimage: Drop needless variable in uimage_flush() Signed-off-by: Andrey Smirnov Signed-off-by: Sascha Hauer --- commands/uimage.c | 6 +----- 1 file changed, 1 insertion(+), 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[]) -- cgit v1.2.3