lkml.org 
[lkml]   [2019]   [Mar]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC PATCH v2 5/7] i2c: busses: omap: Add the master_xfer_irqless hook

> > > + if (!ret)
> > > + timeout = 1;
> > > + else
> > > + timeout = 0;
> >
> >
> > nit: the following might be cleaner
> >
> > ret = !!timeout;
> >
>
> Other way around, perhaps,
>
> timeout = !ret;

I saw that but didn't want to modify this patch. But yes, this is easy
enough and looks a lot better.

[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2019-03-27 14:51    [W:0.058 / U:9.380 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site