[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190327135045.GE5345@kunai>
Date: Wed, 27 Mar 2019 14:50:45 +0100
From: Wolfram Sang <wsa@...-dreams.de>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
Cc: Simon Horman <horms@...ge.net.au>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
linux-i2c@...r.kernel.org, linux-renesas-soc@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
Keerthy <j-keerthy@...com>, Peter Rosin <peda@...ntia.se>,
Tony Lindgren <tony@...mide.com>,
Russell King <linux@...linux.org.uk>,
Stefan Lengfeld <contact@...fanchrist.eu>,
Phil Reid <preid@...ctromag.com.au>,
Tero Kristo <t-kristo@...com>, linux-omap@...r.kernel.org,
linux-tegra@...r.kernel.org
Subject: Re: [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.
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists