diff options
author | Axel Lin <axel.lin@ingics.com> | 2013-08-11 11:08:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-20 06:34:07 -0400 |
commit | a35c6bea8288d526aa0fe4180884e01945d307ab (patch) | |
tree | ab4839a66d9754e9030a48cbcc465ea47dc6f0fc | |
parent | fe81109b6d852cd5ff37099e2738538198c22dfd (diff) |
spi: octeon: Remove unused bits_per_word variable in octeon_spi_do_transfer
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r-- | drivers/spi/spi-octeon.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/spi/spi-octeon.c b/drivers/spi/spi-octeon.c index 983021a1f9ee..c7c772a09bb7 100644 --- a/drivers/spi/spi-octeon.c +++ b/drivers/spi/spi-octeon.c | |||
@@ -63,7 +63,6 @@ static int octeon_spi_do_transfer(struct octeon_spi *p, | |||
63 | unsigned int speed_hz; | 63 | unsigned int speed_hz; |
64 | int mode; | 64 | int mode; |
65 | bool cpha, cpol; | 65 | bool cpha, cpol; |
66 | int bits_per_word; | ||
67 | const u8 *tx_buf; | 66 | const u8 *tx_buf; |
68 | u8 *rx_buf; | 67 | u8 *rx_buf; |
69 | int len; | 68 | int len; |
@@ -75,12 +74,9 @@ static int octeon_spi_do_transfer(struct octeon_spi *p, | |||
75 | mode = msg_setup->mode; | 74 | mode = msg_setup->mode; |
76 | cpha = mode & SPI_CPHA; | 75 | cpha = mode & SPI_CPHA; |
77 | cpol = mode & SPI_CPOL; | 76 | cpol = mode & SPI_CPOL; |
78 | bits_per_word = msg_setup->bits_per_word; | ||
79 | 77 | ||
80 | if (xfer->speed_hz) | 78 | if (xfer->speed_hz) |
81 | speed_hz = xfer->speed_hz; | 79 | speed_hz = xfer->speed_hz; |
82 | if (xfer->bits_per_word) | ||
83 | bits_per_word = xfer->bits_per_word; | ||
84 | 80 | ||
85 | if (speed_hz > OCTEON_SPI_MAX_CLOCK_HZ) | 81 | if (speed_hz > OCTEON_SPI_MAX_CLOCK_HZ) |
86 | speed_hz = OCTEON_SPI_MAX_CLOCK_HZ; | 82 | speed_hz = OCTEON_SPI_MAX_CLOCK_HZ; |