On 08/27/13 02:19, Dan Carpenter wrote: > I've moved the goto down a line after we set the error code. > > Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx> Sorry, I was being slow, but Wei Youngjun has already posted a fix for this one. Just applied to the togreg branch of iio.git Thanks Jonathan > > 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) { > -- > To unsubscribe from this list: send the line "unsubscribe linux-iio" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html