[PATCH] read_file_2(): drop unnecessary 'else'

Alexander Smirnov alllecs at yandex.ru
Mon Jun 29 05:17:10 PDT 2015


Signed-off-by: Alexander Smirnov <alllecs at 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




More information about the barebox mailing list