[PATCH] spi: aspeed: Replace VLA parameter with flat pointer in calibration helper

Mark Brown broonie at kernel.org
Tue May 19 04:03:51 PDT 2026


On Mon, May 18, 2026 at 05:57:08PM +0800, Chin-Ting Kuo wrote:

> -			while (k < cols && buf[i][k])
> +			while (k < cols && buf[i * cols + k])

This really needs () to make it clear what's going on; the precedence is
well defined but not everyone is going to know that off the top of their
head.
-------------- 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/20260519/0833f9c7/attachment.sig>


More information about the linux-arm-kernel mailing list