OSDN Git Service

spi: bcm2835aux: remove dead code
authorMartin Sperl <kernel@martin.sperl.org>
Sat, 30 Mar 2019 09:31:01 +0000 (09:31 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 3 Apr 2019 04:31:18 +0000 (11:31 +0700)
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>
drivers/spi/spi-bcm2835aux.c

index d9e62f7..890aca4 100644 (file)
@@ -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 */