[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190821110126.GB5128@sirena.co.uk>
Date: Wed, 21 Aug 2019 12:01:26 +0100
From: Mark Brown <broonie@...nel.org>
To: Vladimir Oltean <olteanv@...il.com>
Cc: Hubert Feurstein <h.feurstein@...il.com>, mlichvar@...hat.com,
Richard Cochran <richardcochran@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Florian Fainelli <f.fainelli@...il.com>,
linux-spi@...r.kernel.org, netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH spi for-5.4 1/5] spi: Use an abbreviated pointer to
ctlr->cur_msg in __spi_pump_messages
On Tue, Aug 20, 2019 at 10:36:43PM +0300, Vladimir Oltean wrote:
> On Tue, 20 Aug 2019 at 21:21, Mark Brown <broonie@...nel.org> wrote:
> > On Sun, Aug 18, 2019 at 09:25:56PM +0300, Vladimir Oltean wrote:
> > > /* Extract head of queue */
> > > - ctlr->cur_msg =
> > > - list_first_entry(&ctlr->queue, struct spi_message, queue);
> > > + mesg = list_first_entry(&ctlr->queue, struct spi_message, queue);
> > > + ctlr->cur_msg = mesg;
> > Why mesg when the existing code uses msg as an abbreviation here?
> Does it matter? I took from spi_finalize_current_message which also uses mesg.
It's particularly visible when it's on the same line, flags up a
question about if things are the same. Other things not being great
doesn't preclude making this one better.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists