Re: [PATCH 4/7] spi: spidev_test: don't send 0x0 or 0xff
From: Mark Brown
Date: Mon Sep 14 2026 - 13:43:57 EST
On Mon, Sep 14, 2026 at 04:50:43PM +0200, Jonas Rebmann wrote:
> - for (i = 0; i < len; i++)
> - tx[i] = random();
> + for (i = 0; i < len; i++) {
> + do
> + tx[i] = random();
> + while (nonzero && (tx[i] == 0x0 || tx[i] == 0xff));
> + }
Keep {} at all levels to help with legibiity please.
Attachment:
signature.asc
Description: PGP signature