diff options
author | Sachin Kamat <sachin.kamat@samsung.com> | 2014-07-18 08:00:17 -0400 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-07-28 03:10:06 -0400 |
commit | 36ab08eeeb96c5f398622a3462ebc325510e9403 (patch) | |
tree | 1eb4e9e0bf291e058097336df81cb6b1baf7b2de | |
parent | 0a73b28f749262f88e87c2988c32d0153246969b (diff) |
mfd: tps65912-spi: Remove unused variable
‘rx_buf’ is not used in this function.
Signed-off-by: Sachin Kamat <sachin.kamat@samsung.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
-rw-r--r-- | drivers/mfd/tps65912-spi.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c index 69a5178bf152..de60ad98bd9f 100644 --- a/drivers/mfd/tps65912-spi.c +++ b/drivers/mfd/tps65912-spi.c | |||
@@ -32,10 +32,9 @@ static int tps65912_spi_write(struct tps65912 *tps65912, u8 addr, | |||
32 | unsigned long spi_data = 1 << 23 | addr << 15 | *data; | 32 | unsigned long spi_data = 1 << 23 | addr << 15 | *data; |
33 | struct spi_transfer xfer; | 33 | struct spi_transfer xfer; |
34 | struct spi_message msg; | 34 | struct spi_message msg; |
35 | u32 tx_buf, rx_buf; | 35 | u32 tx_buf; |
36 | 36 | ||
37 | tx_buf = spi_data; | 37 | tx_buf = spi_data; |
38 | rx_buf = 0; | ||
39 | 38 | ||
40 | xfer.tx_buf = &tx_buf; | 39 | xfer.tx_buf = &tx_buf; |
41 | xfer.rx_buf = NULL; | 40 | xfer.rx_buf = NULL; |