spi: dw: remove redundant assignment to variable len
authorColin Ian King <colin.i.king@gmail.com>
Thu, 15 Feb 2024 13:16:03 +0000 (13:16 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 15 Feb 2024 14:17:19 +0000 (14:17 +0000)
commit125b28b18926e050e770160a5897b81082304f8c
treee3bad4872ad4f1a6fbaa96395b21b5a379ed1dce
parentdf20385302eb01cb610b9edc71611a63d1683923
spi: dw: remove redundant assignment to variable len

The variable id len being initialized with a value that is never read,
it is being re-assigned later on in a for-loop. The initialization is
redundant and can be removed.

Cleans up clang scan build warning:
drivers/spi/spi-dw-dma.c:580:17: warning: Although the value stored
to 'len' is used in the enclosing expression, the value is never
actually read from 'len' [deadcode.DeadStores]

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Acked-by: Serge Semin <fancer.lancer@gmail.com>
Link: https://msgid.link/r/20240215131603.2062332-1-colin.i.king@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-dw-dma.c