[nuttx-bb][PATCH 1/3] Fix console by sending chunk blocks lesser than 32 bytes
Sylvain Munaut
246tnt at gmail.com
Sat Feb 25 22:59:06 CET 2012
> > + if (buflen >= 31)
> > + cnt = 31;
> > else
> > - return buflen;
> > + cnt = buflen;
> > +
>
> I could simplify this if/else by:
>
> cnt = buflen & 0x1F;
>
> but I think it will not be readable for other people.
>
> > +
It would also be wrong ...
32 & 0x1F = 0 ...
Cheers,
Sylvain
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20120225/5f93dd7e/attachment-0001.html>
More information about the baseband-devel
mailing list