linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] spi: qup: Remove unnecessary initialization of local variable
@ 2014-08-07 10:40 Pramod Gurav
  0 siblings, 0 replies; only message in thread
From: Pramod Gurav @ 2014-08-07 10:40 UTC (permalink / raw)
  To: linux-spi, linux-kernel, linux-arm-msm
  Cc: Pramod Gurav, Mark Brown, Grant Likely

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(-)

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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-08-07 10:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-07 10:40 [PATCH] spi: qup: Remove unnecessary initialization of local variable Pramod Gurav

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).