From: Sachin Kamat Date: Fri, 18 Jul 2014 12:00:17 +0000 (+0530) Subject: mfd: tps65912-spi: Remove unused variable X-Git-Tag: pci-v3.17-changes-2~39^2~8 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=36ab08eeeb96c5f398622a3462ebc325510e9403;p=users%2Fdwmw2%2Flinux.git mfd: tps65912-spi: Remove unused variable ‘rx_buf’ is not used in this function. Signed-off-by: Sachin Kamat Signed-off-by: Lee Jones --- diff --git a/drivers/mfd/tps65912-spi.c b/drivers/mfd/tps65912-spi.c index 69a5178bf152a..de60ad98bd9f0 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, unsigned long spi_data = 1 << 23 | addr << 15 | *data; struct spi_transfer xfer; struct spi_message msg; - u32 tx_buf, rx_buf; + u32 tx_buf; tx_buf = spi_data; - rx_buf = 0; xfer.tx_buf = &tx_buf; xfer.rx_buf = NULL;