提交 01d2de39 编写于 作者: S sayli karnik 提交者: Jonathan Cameron

staging: iio: ad9834: Remove unnecessary goto statement

The patch removes unnecessary use of goto statement.
Signed-off-by: Nsayli karnik <karniksayli1995@gmail.com>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册