All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] iio: adc: twl6030-gpadc: returning success instead of error
@ 2013-08-27  1:19 ` Dan Carpenter
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

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

Thread overview: 4+ 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-27  1:19 ` Dan Carpenter
2013-08-28 19:47 ` Jonathan Cameron
2013-08-28 19:47   ` Jonathan Cameron

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.