From: sayli karnik Date: Mon, 13 Mar 2017 17:56:18 +0000 (+0530) Subject: staging: iio: ad9834: Remove unnecessary goto statement X-Git-Tag: v4.12-rc1~84^2~384^2~25 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=01d2de39cd765461562ff6cc69dfc419d9fc63b6;p=karo-tx-linux.git staging: iio: ad9834: Remove unnecessary goto statement The patch removes unnecessary use of goto statement. Signed-off-by: sayli karnik Signed-off-by: Jonathan Cameron --- diff --git a/drivers/staging/iio/frequency/ad9834.c b/drivers/staging/iio/frequency/ad9834.c index 2dffe48035f3..af108e96b3ec 100644 --- a/drivers/staging/iio/frequency/ad9834.c +++ b/drivers/staging/iio/frequency/ad9834.c @@ -149,7 +149,7 @@ static ssize_t ad9834_write(struct device *dev, ret = kstrtoul(buf, 10, &val); if (ret) - goto error_ret; + return ret; mutex_lock(&st->lock); switch ((u32)this_attr->address) { @@ -211,7 +211,6 @@ static ssize_t ad9834_write(struct device *dev, } mutex_unlock(&st->lock); -error_ret: return ret ? ret : len; }