[PATCH RFC v2 23/35] spi: realtek-rtl-snand: Drop redundant check
Chris Packham
Chris.Packham at alliedtelesis.co.nz
Sun Nov 29 11:54:50 PST 2026
Hi Miquel,
On 28/11/2026 03:22, Miquel Raynal wrote:
> The core already sanitizes the spi-mem operations, this check is
> redundant so let's drop it.
>
> Signed-off-by: Miquel Raynal <miquel.raynal at bootlin.com>
Reviewed-by: Chris Packham <chris.packham at alliedtelesis.co.nz>
> ---
> drivers/spi/spi-realtek-rtl-snand.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/spi/spi-realtek-rtl-snand.c b/drivers/spi/spi-realtek-rtl-snand.c
> index 61fe54d8167a..e2394842800b 100644
> --- a/drivers/spi/spi-realtek-rtl-snand.c
> +++ b/drivers/spi/spi-realtek-rtl-snand.c
> @@ -54,7 +54,7 @@ static bool rtl_snand_supports_op(struct spi_mem *mem,
> {
> if (!spi_mem_default_supports_op(mem, op))
> return false;
> - if (op->cmd.nbytes != 1 || op->cmd.buswidth != 1)
> + if (op->cmd.buswidth != 1)
> return false;
> return true;
> }
>
More information about the linux-mtd
mailing list