Commit 01d2de39 authored by sayli karnik's avatar sayli karnik Committed by Jonathan Cameron

staging: iio: ad9834: Remove unnecessary goto statement

The patch removes unnecessary use of goto statement.
Signed-off-by: default avatarsayli karnik <karniksayli1995@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent c63313c6
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment