summaryrefslogtreecommitdiff
path: root/drivers/spi
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-11-15 13:20:52 +0000
committerWolfgang Denk <wd@denx.de>2011-11-16 21:28:25 +0100
commiteba46d69b35b8a6d7de8f17328f2cb274988714f (patch)
treecc6d1ee6adeb4872606459db89e577edb7976838 /drivers/spi
parent4e11c3519381368a1d84c6ec4f9fad7cc6116f0a (diff)
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 <agust@denx.de>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/atmel_spi.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index 33e38b61b72..83ef8e8b193 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;