The initialization of variable ret is unnecessary, Hence removing it.

CC: Mark Brown <[email protected]>
CC: Grant Likely <[email protected]>

Signed-off-by: Pramod Gurav <[email protected]>
---
 drivers/spi/spi-qup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c
index c08da38..369f05c 100644
--- a/drivers/spi/spi-qup.c
+++ b/drivers/spi/spi-qup.c
@@ -430,7 +430,7 @@ static int spi_qup_transfer_one(struct spi_master *master,
 {
        struct spi_qup *controller = spi_master_get_devdata(master);
        unsigned long timeout, flags;
-       int ret = -EIO;
+       int ret;
 
        ret = spi_qup_io_config(spi, xfer);
        if (ret)
-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-spi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to