[nuttx-bb][PATCH 1/3] Fix console by sending chunk blocks lesser than 32 bytes

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Alan Carvalho de Assis acassis at gmail.com
Sat Feb 25 21:35:03 UTC 2012


On 2/25/12, Denis 'GNUtoo' Carikli <GNUtoo at no-log.org> wrote:
snip
> +
> +	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.

Best Regards,

Alan




More information about the baseband-devel mailing list