lkml.org 
[lkml]   [2020]   [Aug]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/5] spi: stm32: fix fifo threshold level in case of short transfer
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.
[unhandled content-type:application/pgp-signature]
\
 
 \ /
  Last update: 2020-08-07 15:29    [W:0.051 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site