Skip to contentSkip to conversation

commands: uimage: Drop needless variable in uimage_flush()

PATCH Applied Andrey Smirnov 2 participants 2 messages Feb 26, 2019 – Feb 27, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 commands: uimage: Drop needless variable in uimage_flush()

---
 commands/uimage.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)
commands/uimage.c +1 -5
index 7c2dca41e..982da7101 100644
@@ -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[])
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Applied
#1 lore raw
Quoted 4 lines · Andrey Smirnov
---
 commands/uimage.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

Applied, thanks

Sascha

Quoted 27 lines
commands/uimage.c +1 -5
index 7c2dca41e..982da7101 100644
@@ -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[])
Signature · 7 lines
2.20.1


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox