All of lore.kernel.org
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: Rehas Sachdeva <aquannie@gmail.com>
Cc: outreachy-kernel@googlegroups.com,
	Sudip Mukherjee <sudipm.mukherjee@gmail.com>,
	Teddy Wang <teddy.wang@siliconmotion.com>
Subject: Re: [PATCH 3/5] staging: sm750fb: Remove multiple assignments
Date: Fri, 16 Sep 2016 14:55:02 +0200	[thread overview]
Message-ID: <20160916125502.GA29701@kroah.com> (raw)
In-Reply-To: <20160916123439.GA15179@toblerone>

On Fri, Sep 16, 2016 at 06:04:39PM +0530, Rehas Sachdeva wrote:
> On Fri, Sep 16, 2016 at 09:48:59AM +0200, Greg Kroah-Hartman wrote:
> > On Fri, Sep 16, 2016 at 03:03:02AM +0530, Rehas Sachdeva wrote:
> > > Fixes multiple assignments of the form 'x = y = k' to 'x = k; y = k;'. Issue
> > > detected by checkpatch.
> > > 
> > > Signed-off-by: Rehas Sachdeva <aquannie@gmail.com>
> > > ---
> > >  drivers/staging/sm750fb/sm750.c | 12 ++++++++----
> > >  1 file changed, 8 insertions(+), 4 deletions(-)
> > > 
> > > diff --git a/drivers/staging/sm750fb/sm750.c b/drivers/staging/sm750fb/sm750.c
> > > index 7d90e25..9f1b591 100644
> > > --- a/drivers/staging/sm750fb/sm750.c
> > > +++ b/drivers/staging/sm750fb/sm750.c
> > > @@ -365,7 +365,8 @@ static int lynxfb_ops_set_par(struct fb_info *info)
> > >  		ret = -EINVAL;
> > >  		break;
> > >  	}
> > > -	var->height = var->width = -1;
> > > +	var->height = -1;
> > > +	var->width = -1;
> > 
> > that's an odd change, isn't the first version of all of these more
> > readable?
> > 
> > thanks,
> > 
> > greg k-h
> 
> Hi Greg,
> 
> This is an odd change indeed, something I saw only in sm750fb, among so many
> other drivers. Does that mean that for the sake of uniformity, we should go
> ahead with this? Although the first version looks better somehow.

I recommend just leaving it alone, thanks.

greg k-h


  reply	other threads:[~2016-09-16 12:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-15 21:31 [PATCH 0/5] staging: sm750fb: Fix multiple checkpatch warnings Rehas Sachdeva
2016-09-15 21:32 ` [PATCH 1/5] staging: sm750fb: Add blank line after declarations Rehas Sachdeva
2016-09-16  7:48   ` Greg Kroah-Hartman
2016-09-16  7:53     ` [Outreachy kernel] " Julia Lawall
2016-09-15 21:32 ` [PATCH 2/5] staging: sm750fb: Change 'x != NULL' to 'x' Rehas Sachdeva
2016-09-15 21:33 ` [PATCH 3/5] staging: sm750fb: Remove multiple assignments Rehas Sachdeva
2016-09-16  7:48   ` Greg Kroah-Hartman
2016-09-16 12:34     ` Rehas Sachdeva
2016-09-16 12:55       ` Greg Kroah-Hartman [this message]
2016-09-15 21:33 ` [PATCH 4/5] staging: sm750fb: Change 'uint32_t' to 'u32' Rehas Sachdeva
2016-09-15 21:33 ` [PATCH 5/5] staging: sm750fb: Add spaces around '|' Rehas Sachdeva
2016-09-16  7:50   ` 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=20160916125502.GA29701@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=aquannie@gmail.com \
    --cc=outreachy-kernel@googlegroups.com \
    --cc=sudipm.mukherjee@gmail.com \
    --cc=teddy.wang@siliconmotion.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.