diff options
author | Martin Sperl <kernel@martin.sperl.org> | 2019-03-30 10:31:01 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-04-03 06:31:18 +0200 |
commit | 08a8549509b6e9a9f0d373257f45533df439c70f (patch) | |
tree | 754faa834d1c1cd9b6a5c78f5e48596ba15066e2 /drivers/spi/spi-bcm2835aux.c | |
parent | spi: bcm2835aux: fix corruptions for longer spi transfers (diff) | |
download | linux-08a8549509b6e9a9f0d373257f45533df439c70f.tar.xz linux-08a8549509b6e9a9f0d373257f45533df439c70f.zip |
spi: bcm2835aux: remove dead code
Remove dead code that never can get reached, as we limit count to
a max of 3.
Suggested-by: Hubert Denkmair <h.denkmair@intence.de>
Signed-off-by: Martin Sperl <kernel@martin.sperl.org>
Acked-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-bcm2835aux.c')
-rw-r--r-- | drivers/spi/spi-bcm2835aux.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/spi-bcm2835aux.c b/drivers/spi/spi-bcm2835aux.c index d9e62f717a45..890aca4873a7 100644 --- a/drivers/spi/spi-bcm2835aux.c +++ b/drivers/spi/spi-bcm2835aux.c @@ -123,9 +123,6 @@ static inline void bcm2835aux_rd_fifo(struct bcm2835aux_spi *bs) data = bcm2835aux_rd(bs, BCM2835_AUX_SPI_IO); if (bs->rx_buf) { switch (count) { - case 4: - *bs->rx_buf++ = (data >> 24) & 0xff; - /* fallthrough */ case 3: *bs->rx_buf++ = (data >> 16) & 0xff; /* fallthrough */ |