From: Alexander Smirnov <alllecs@yandex.ru>
To: Sascha Hauer <s.hauer@pengutronix.de>
Cc: barebox@lists.infradead.org, Alexander Smirnov <alllecs@yandex.ru>
Subject: [PATCH] read_file_2(): drop unnecessary 'else'
Date: Mon, 29 Jun 2015 15:17:10 +0300 [thread overview]
Message-ID: <1435580230-22785-1-git-send-email-alllecs@yandex.ru> (raw)
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
next reply other threads:[~2015-06-29 12:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-29 12:17 Alexander Smirnov [this message]
2015-07-01 5:12 ` Sascha Hauer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1435580230-22785-1-git-send-email-alllecs@yandex.ru \
--to=alllecs@yandex.ru \
--cc=barebox@lists.infradead.org \
--cc=s.hauer@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox