linux-iio.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] iio: adc: twl6030-gpadc: returning success instead of error
@ 2013-08-27  1:19 Dan Carpenter
  2013-08-28 19:47 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Dan Carpenter @ 2013-08-27  1:19 UTC (permalink / raw)
  To: Jonathan Cameron
  Cc: Grant Likely, Rob Herring, Oleksandr Kozaruk, Graeme Gregory,
	Balaji T K, linux-iio, devicetree

I've moved the goto down a line after we set the error code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/iio/adc/twl6030-gpadc.c b/drivers/iio/adc/twl6030-gpadc.c
index a558516..0ea96c0 100644
--- a/drivers/iio/adc/twl6030-gpadc.c
+++ b/drivers/iio/adc/twl6030-gpadc.c
@@ -537,8 +537,8 @@ static int twl6030_gpadc_read_raw(struct iio_dev *indio_dev,
 		ret = -ETIMEDOUT;
 		goto err;
 	} else if (timeout < 0) {
-		goto err;
 		ret = -EINTR;
+		goto err;
 	}
 
 	switch (mask) {

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-28 18:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-27  1:19 [patch] iio: adc: twl6030-gpadc: returning success instead of error Dan Carpenter
2013-08-28 19:47 ` Jonathan Cameron

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