lkml.org 
[lkml]   [2016]   [Jan]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] regmap: irq: add support for configuration of trigger type
On Tue, Dec 22, 2015 at 06:25:26PM +0530, Laxman Dewangan wrote:

> + d->type_reg_stride = chip->type_reg_stride ? : 1;
> +

Please don't abuse the ternery operator, especially not the GCC
extension - that's much less clear than just writing the if statement.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2016-01-05 19:21    [W:0.105 / U:0.380 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site