spi: qup: Remove unnecessary initialization of local variable
diff mbox

Message ID 1407408032-4561-1-git-send-email-pramod.gurav@smartplayin.com
State New, archived
Headers show

Commit Message

Pramod Gurav Aug. 7, 2014, 10:40 a.m. UTC
The initialization of variable ret is unnecessary, Hence removing it.

CC: Mark Brown <broonie@linaro.org>
CC: Grant Likely <grant.likely@linaro.org>

Signed-off-by: Pramod Gurav <pramod.gurav@smartplayin.com>
---
 drivers/spi/spi-qup.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox

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)