[PATCH] commands: uimage: Drop needless variable in uimage_flush()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Andrey Smirnov <andrew.smirnov@xxxxxxxxx>
---
 commands/uimage.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/commands/uimage.c b/commands/uimage.c
index 7c2dca41e..982da7101 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[])
-- 
2.20.1


_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux