[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210803193049.GQ4668@sirena.org.uk>
Date: Tue, 3 Aug 2021 20:30:49 +0100
From: Mark Brown <broonie@...nel.org>
To: Andy Shevchenko <andy.shevchenko@...il.com>
Cc: Mason Zhang <Mason.Zhang@...iatek.com>,
Matthias Brugger <matthias.bgg@...il.com>,
Laxman Dewangan <ldewangan@...dia.com>,
linux-spi <linux-spi@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
"moderated list:ARM/Mediatek SoC support"
<linux-mediatek@...ts.infradead.org>,
Mediatek WSD Upstream <wsd_upstream@...iatek.com>
Subject: Re: [PATCH v2 3/4] spi: mediatek: modify set_cs_timing callback
On Tue, Aug 03, 2021 at 09:20:19PM +0300, Andy Shevchenko wrote:
> On Tue, Aug 3, 2021 at 1:42 PM Mason Zhang <Mason.Zhang@...iatek.com> wrote:
> > + inactive = inactive ? inactive : 1;
> All of these can be simplified by using ?: (short ternary) form.
Please don't, if anything just don't use the ternery operator at all for
things like this - it doesn't help with legibility.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists