From 01d2de39cd765461562ff6cc69dfc419d9fc63b6 Mon Sep 17 00:00:00 2001 From: sayli karnik Date: Mon, 13 Mar 2017 23:26:18 +0530 Subject: [PATCH] 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 --- drivers/staging/iio/frequency/ad9834.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } -- 2.39.5