diff options
| author | Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com> | 2026-05-20 10:13:42 +0100 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-05-21 16:58:01 +0100 |
| commit | 90330ae4e0d891ecb4879d03cbdd6bdca062c7a0 (patch) | |
| tree | 0ce550a994511ebac2c56e79b7a46934e6308e3a /drivers/spi | |
| parent | 16ba3b0c66ef1d16bce2e99d787d7d12281bb2de (diff) | |
| download | linux-next-90330ae4e0d891ecb4879d03cbdd6bdca062c7a0.tar.gz linux-next-90330ae4e0d891ecb4879d03cbdd6bdca062c7a0.zip | |
spi: Drop redundant 'cs' variable declaration in __spi_add_device()
Remove the redundant local variable 'cs' definition declared within the
chipselect GPIO configuration block.
Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://patch.msgid.link/20260520091342.68029-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
| -rw-r--r-- | drivers/spi/spi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 0576bd00d3ef..fe7e3b3b98fc 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -732,8 +732,6 @@ static int __spi_add_device(struct spi_device *spi, struct spi_device *parent) } if (ctlr->cs_gpiods) { - u8 cs; - for (idx = 0; idx < spi->num_chipselect; idx++) { cs = spi_get_chipselect(spi, idx); spi_set_csgpiod(spi, idx, ctlr->cs_gpiods[cs]); |
