Commit a35c6bea authored by Axel Lin's avatar Axel Lin Committed by Mark Brown

spi: octeon: Remove unused bits_per_word variable in octeon_spi_do_transfer

Signed-off-by: default avatarAxel Lin <axel.lin@ingics.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent fe81109b
...@@ -63,7 +63,6 @@ static int octeon_spi_do_transfer(struct octeon_spi *p, ...@@ -63,7 +63,6 @@ static int octeon_spi_do_transfer(struct octeon_spi *p,
unsigned int speed_hz; unsigned int speed_hz;
int mode; int mode;
bool cpha, cpol; bool cpha, cpol;
int bits_per_word;
const u8 *tx_buf; const u8 *tx_buf;
u8 *rx_buf; u8 *rx_buf;
int len; int len;
...@@ -75,12 +74,9 @@ static int octeon_spi_do_transfer(struct octeon_spi *p, ...@@ -75,12 +74,9 @@ static int octeon_spi_do_transfer(struct octeon_spi *p,
mode = msg_setup->mode; mode = msg_setup->mode;
cpha = mode & SPI_CPHA; cpha = mode & SPI_CPHA;
cpol = mode & SPI_CPOL; cpol = mode & SPI_CPOL;
bits_per_word = msg_setup->bits_per_word;
if (xfer->speed_hz) if (xfer->speed_hz)
speed_hz = xfer->speed_hz; speed_hz = xfer->speed_hz;
if (xfer->bits_per_word)
bits_per_word = xfer->bits_per_word;
if (speed_hz > OCTEON_SPI_MAX_CLOCK_HZ) if (speed_hz > OCTEON_SPI_MAX_CLOCK_HZ)
speed_hz = OCTEON_SPI_MAX_CLOCK_HZ; speed_hz = OCTEON_SPI_MAX_CLOCK_HZ;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment