From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Rehas Sachdeva <aquannie@gmail.com>
Cc: outreachy-kernel@googlegroups.com, Lior Dotan <liodot@gmail.com>,
Christopher Harrer <charrer@alacritech.com>
Subject: Re: [Outreachy kernel] [PATCH 3/5] staging: slicoss: Add {} to an arm of if-else
Date: Fri, 16 Sep 2016 09:54:48 +0200 [thread overview]
Message-ID: <20160916075448.GC1858@kroah.com> (raw)
In-Reply-To: <5259aeed6321af3f2c7c1f3d1c2f7458deb1e944.1473966683.git.aquannie@gmail.com>
On Fri, Sep 16, 2016 at 12:45:05AM +0530, Rehas Sachdeva wrote:
> Adds braces {} to the if arm of an if-else statement which has braces {} on
> its else arm. This improves uniformity and readability. Issue detected by
> checkpatch.
>
> Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
> ---
> drivers/staging/slicoss/slicoss.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/staging/slicoss/slicoss.c b/drivers/staging/slicoss/slicoss.c
> index f2c751c..8182e58 100644
> --- a/drivers/staging/slicoss/slicoss.c
> +++ b/drivers/staging/slicoss/slicoss.c
> @@ -784,8 +784,9 @@ static void slic_timer_load_check(ulong cardaddr)
> if ((adapter) && (adapter->state == ADAPT_UP) &&
> (card->state == CARD_UP) && (slic_global.dynamic_intagg)) {
> if (adapter->devid == SLIC_1GB_DEVICE_ID) {
> - if (adapter->linkspeed == LINK_1000MB)
> + if (adapter->linkspeed == LINK_1000MB) {
> level = 100;
> + }
> else {
This line should be:
} else {
thanks,
greg k-h
next prev parent reply other threads:[~2016-09-16 7:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-15 19:13 [PATCH 0/5] staging: slicoss: Fix multiple checkpatch warnings Rehas Sachdeva
2016-09-15 19:14 ` [PATCH 1/5] staging: slicoss: Fix alignment with open parentheses Rehas Sachdeva
2016-09-15 19:20 ` [Outreachy kernel] " Julia Lawall
2016-09-15 19:28 ` Rehas Sachdeva
2016-09-15 19:14 ` [PATCH 2/5] staging: slicoss: Remove blank lines before & after braces Rehas Sachdeva
2016-09-15 19:15 ` [PATCH 3/5] staging: slicoss: Add {} to an arm of if-else Rehas Sachdeva
2016-09-16 7:54 ` Greg Kroah-Hartman [this message]
2016-09-15 19:15 ` [PATCH 4/5] staging: slicoss: Remove unnecessary braces {} Rehas Sachdeva
2016-09-15 19:15 ` [PATCH 5/5] staging: slicoss: Remove unnecessary blank line Rehas Sachdeva
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=20160916075448.GC1858@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=aquannie@gmail.com \
--cc=charrer@alacritech.com \
--cc=liodot@gmail.com \
--cc=outreachy-kernel@googlegroups.com \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.