Thread (3 messages) flat view 3 messages, 3 authors, 2021-08-03

Re: [PATCH v2 3/4] spi: mediatek: modify set_cs_timing callback

From: Mark Brown <broonie@kernel.org>
Date: 2021-08-03 19:31:07
Also in: linux-arm-kernel, linux-spi, lkml

On Tue, Aug 03, 2021 at 09:20:19PM +0300, Andy Shevchenko wrote:
On Tue, Aug 3, 2021 at 1:42 PM Mason Zhang [off-list ref] wrote:
quoted
+       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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help