[PATCH RFC v2 23/35] spi: realtek-rtl-snand: Drop redundant check
From: Miquel Raynal
Date: Fri Nov 27 2026 - 09:28:54 EST
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>
---
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;
}
--
2.56.0