projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fe81109
)
spi: octeon: Remove unused bits_per_word variable in octeon_spi_do_transfer
author
Axel Lin
<
[email protected]
>
Sun, 11 Aug 2013 15:08:21 +0000
(23:08 +0800)
committer
Mark Brown
<
[email protected]
>
Tue, 20 Aug 2013 10:34:07 +0000
(11:34 +0100)
Signed-off-by: Axel Lin <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
drivers/spi/spi-octeon.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-octeon.c
b/drivers/spi/spi-octeon.c
index 983021a1f9eea51845525d9be15c7306f84d0a7c..c7c772a09bb7b28d396f625c17677cfd007aa1df 100644
(file)
--- 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,
unsigned int speed_hz;
int mode;
bool cpha, cpol;
- int bits_per_word;
const u8 *tx_buf;
u8 *rx_buf;
int len;
@@
-75,12
+74,9
@@
static int octeon_spi_do_transfer(struct octeon_spi *p,
mode = msg_setup->mode;
cpha = mode & SPI_CPHA;
cpol = mode & SPI_CPOL;
- bits_per_word = msg_setup->bits_per_word;
if (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)
speed_hz = OCTEON_SPI_MAX_CLOCK_HZ;