All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Dilek Uzulmez <dilekuzulmez@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] Staging: wilc1000: Remove unnecessary else after return
Date: Fri, 19 Feb 2016 17:07:49 -0800	[thread overview]
Message-ID: <20160220010749.GA7116@kroah.com> (raw)
In-Reply-To: <1455887905-7002-1-git-send-email-dilekuzulmez@gmail.com>

On Fri, Feb 19, 2016 at 03:18:25PM +0200, Dilek Uzulmez wrote:
> This patch fixes checkpatch.pl warning in files of wilc1000
> WARNING: else is not generally useful after a break or return
> 
> Signed-off-by: Dilek Uzulmez <dilekuzulmez@gmail.com>
> ---
>  drivers/staging/wilc1000/coreconfigurator.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/wilc1000/coreconfigurator.c b/drivers/staging/wilc1000/coreconfigurator.c
> index 544c12d..b0cefe1 100644
> --- a/drivers/staging/wilc1000/coreconfigurator.c
> +++ b/drivers/staging/wilc1000/coreconfigurator.c
> @@ -939,9 +939,9 @@ s32 SendConfigPkt(u8 u8Mode, tstrWID *pstrWIDs,
>  	    gpstrWlanOps->wlan_cfg_get == NULL)	{
>  		PRINT_D(CORECONFIG_DBG, "Set and Get is still not initialized\n");
>  		return 1;
> -	} else {
> -		PRINT_D(CORECONFIG_DBG, "SET is initialized\n");
>  	}
> +		PRINT_D(CORECONFIG_DBG, "SET is initialized\n");
> +

Does that indentation look correct to you?  It doesn't to me...

thanks,

greg k-h


  reply	other threads:[~2016-02-20  1:07 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-19 13:18 [PATCH] Staging: wilc1000: Remove unnecessary else after return Dilek Uzulmez
2016-02-20  1:07 ` Greg KH [this message]
2016-02-20  3:45 ` [Outreachy kernel] " Julia Lawall

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=20160220010749.GA7116@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=dilekuzulmez@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.