Re: [RFC PATCH v2 5/7] i2c: busses: omap: Add the master_xfer_irqless hook

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> > > +		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.

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux Samsung SOC]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux