Re: [PATCH RFC v2 23/35] spi: realtek-rtl-snand: Drop redundant check

From: Chris Packham

Date: Sun Nov 29 2026 - 14:55:04 EST


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@xxxxxxxxxxx>
Reviewed-by: Chris Packham <chris.packham@xxxxxxxxxxxxxxxxxxx>
> ---
> 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;
> }
>