[PATCH 2/5] spi: stm32: fix fifo threshold level in case of short transfer

Mark Brown broonie at kernel.org
Fri Aug 7 09:27:22 EDT 2020


On Fri, Aug 07, 2020 at 03:21:22PM +0200, Alain Volmat wrote:

> +	/* data_packet should not exceed transfer length */
> +	packet = (half_fifo > xfer_len) ? xfer_len : half_fifo;

Please write normal conditional statements to improve legibility.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20200807/bd3bd56e/attachment.sig>


More information about the linux-arm-kernel mailing list