From eba46d69b35b8a6d7de8f17328f2cb274988714f Mon Sep 17 00:00:00 2001 From: Anatolij Gustschin Date: Tue, 15 Nov 2011 13:20:52 +0000 Subject: [PATCH] drivers/spi/atmel_spi.c: Fix GCC 4.6 warning Fix: atmel_spi.c: In function 'spi_xfer': atmel_spi.c:139:7: warning: variable 'ret' set but not used [-Wunused-but-set-variable] Signed-off-by: Anatolij Gustschin --- drivers/spi/atmel_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c index 33e38b61b7..83ef8e8b19 100644 --- a/drivers/spi/atmel_spi.c +++ b/drivers/spi/atmel_spi.c @@ -136,13 +136,11 @@ int spi_xfer(struct spi_slave *slave, unsigned int bitlen, unsigned int len_tx; unsigned int len_rx; unsigned int len; - int ret; u32 status; const u8 *txp = dout; u8 *rxp = din; u8 value; - ret = 0; if (bitlen == 0) /* Finish any previously submitted transfers */ goto out; -- 2.39.5