All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Cristina Moraru <cristina.moraru09@gmail.com>
Cc: outreachy-kernel@googlegroups.com
Subject: Re: [Outreachy kernel] [PATCH] staging:dgnc: Fixed checkpatch warning
Date: Wed, 30 Sep 2015 04:02:52 +0200	[thread overview]
Message-ID: <20150930020252.GA14929@kroah.com> (raw)
In-Reply-To: <1443562568-42880-1-git-send-email-cristina.moraru09@gmail.com>

On Tue, Sep 29, 2015 at 02:36:08PM -0700, Cristina Moraru wrote:
> Fixed 'suspect code indent for conditional statements (8, 24)' Warning
> 
> Signed-off-by: Cristina Moraru <cristina.moraru09@gmail.com>
> ---
>  drivers/staging/dgnc/dgnc_cls.c | 5 +++--
>  1 file changed, 3 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c
> index a629a78..a2cfe35 100644
> --- a/drivers/staging/dgnc/dgnc_cls.c
> +++ b/drivers/staging/dgnc/dgnc_cls.c
> @@ -632,9 +632,10 @@ static void cls_param(struct tty_struct *tty)
>  		(ch->ch_c_cflag & CRTSCTS) ||
>  		!(ch->ch_digi.digi_flags & DIGI_FORCEDCD) ||
>  		!(ch->ch_c_cflag & CLOCAL))
> -			ier |= UART_IER_MSI;
> +
> +		ier |= UART_IER_MSI;
>  	else
> -			ier &= ~UART_IER_MSI;
> +		ier &= ~UART_IER_MSI;

Technically your change is correct, but ugh, the code is ugly now and
it's not obvious at all that the assignment of ier is what happens here
due to the indentation of the lines above it, right?

Can you please fix this to move the if statement lines to the left
correctly, so that the tab indentation of the ier line is now obvious?

Just do it all in one patch, I don't want to take this patch as-is.

thanks,

greg k-h


      reply	other threads:[~2015-09-30  2:13 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-09-29 21:36 [PATCH] staging:dgnc: Fixed checkpatch warning Cristina Moraru
2015-09-30  2:02 ` Greg KH [this message]

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=20150930020252.GA14929@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=cristina.moraru09@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.