From: Eli Billauer <eli.billauer@gmail.com>
To: Jeremiah Mahler <jmmahler@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Wei Yongjun <yongjun_wei@trendmicro.com.cn>,
Kees Cook <keescook@chromium.org>,
Masanari Iida <standby24x7@gmail.com>,
Richard Weinberger <richard@nod.at>,
Ebru Akagunduz <ebru.akagunduz@gmail.com>,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] xillybus: place 'else' on same line as '}'
Date: Mon, 14 Jul 2014 09:40:39 +0300 [thread overview]
Message-ID: <53C37B67.7000203@gmail.com> (raw)
In-Reply-To: <1405307220-15946-1-git-send-email-jmmahler@gmail.com>
Hi,
Thanks for this.
And since I looked at the part in Codingstyle that deals with if-else, I
found another few mistakes regarding braces around a single statement.
The rules say, it turns out, that if one of the clauses in an if-else is
longer than one statement, both clauses should be wrapped with braces.
This rule is broken in lines 162, 536 and 613 of the same file.
To avoid possible conflicts, I'll wait for this patch to be applied, and
submit my corrections after that.
Regards,
Eli
On 14/07/14 06:07, Jeremiah Mahler wrote:
> Place 'else' on same line as closing brace '}' as per
> Documentation/CodingStyle. Fixes 1 error found by checkpatch.pl.
>
> Signed-off-by: Jeremiah Mahler<jmmahler@gmail.com>
> ---
> drivers/staging/xillybus/xillybus_core.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c
> index ab6502c..7de4c11 100644
> --- a/drivers/staging/xillybus/xillybus_core.c
> +++ b/drivers/staging/xillybus/xillybus_core.c
> @@ -546,8 +546,7 @@ static int xilly_setupchannels(struct xilly_endpoint *ep,
> channel->rd_buffers = buffers;
> rc = xilly_get_dma_buffers(ep,&rd_alloc, buffers,
> bufnum, bytebufsize);
> - }
> - else if (channelnum> 0) {
> + } else if (channelnum> 0) {
> channel->num_wr_buffers = bufnum;
>
> channel->seekable = seekable;
>
next prev parent reply other threads:[~2014-07-14 6:56 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 3:07 [PATCH] xillybus: place 'else' on same line as '}' Jeremiah Mahler
2014-07-14 6:40 ` Eli Billauer [this message]
2014-07-14 8:51 ` Dan Carpenter
2014-07-14 16:08 ` Jeremiah Mahler
2014-07-14 16:02 ` Jeremiah Mahler
2014-07-18 0:18 ` Greg Kroah-Hartman
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=53C37B67.7000203@gmail.com \
--to=eli.billauer@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=ebru.akagunduz@gmail.com \
--cc=gregkh@linuxfoundation.org \
--cc=jmmahler@gmail.com \
--cc=keescook@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=richard@nod.at \
--cc=standby24x7@gmail.com \
--cc=yongjun_wei@trendmicro.com.cn \
/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