mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] read_file_2(): drop unnecessary 'else'
@ 2015-06-29 12:17 Alexander Smirnov
  2015-07-01  5:12 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Smirnov @ 2015-06-29 12:17 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, Alexander Smirnov

Signed-off-by: Alexander Smirnov <alllecs@yandex.ru>
---
 lib/libfile.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/libfile.c b/lib/libfile.c
index 8acff04..ba03700 100644
--- a/lib/libfile.c
+++ b/lib/libfile.c
@@ -184,8 +184,8 @@ again:
 
 	if (read_size < s.st_size)
 		return -EFBIG;
-	else
-		return 0;
+
+	return 0;
 
 err_out1:
 	close(fd);
-- 
2.1.4


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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] read_file_2(): drop unnecessary 'else'
  2015-06-29 12:17 [PATCH] read_file_2(): drop unnecessary 'else' Alexander Smirnov
@ 2015-07-01  5:12 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2015-07-01  5:12 UTC (permalink / raw)
  To: Alexander Smirnov; +Cc: barebox

On Mon, Jun 29, 2015 at 03:17:10PM +0300, Alexander Smirnov wrote:
> Signed-off-by: Alexander Smirnov <alllecs@yandex.ru>
> ---
>  lib/libfile.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

Applied, thanks

Sascha

-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-01  5:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-29 12:17 [PATCH] read_file_2(): drop unnecessary 'else' Alexander Smirnov
2015-07-01  5:12 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox