drivers/spi/atmel_spi.c: Fix GCC 4.6 warning
authorAnatolij Gustschin <agust@denx.de>
Tue, 15 Nov 2011 13:20:52 +0000 (13:20 +0000)
committerWolfgang Denk <wd@denx.de>
Wed, 16 Nov 2011 20:28:25 +0000 (21:28 +0100)
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>
drivers/spi/atmel_spi.c

index 33e38b61b72501a8d5935741e8894d923b2cb797..83ef8e8b193c9c9e30e760a4c8d40afc08ed8cce 100644 (file)
@@ -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;