mirror of https://gitee.com/openkylin/linux.git
staging: iio: ad9834: Remove unnecessary goto statement
The patch removes unnecessary use of goto statement. Signed-off-by: sayli karnik <karniksayli1995@gmail.com> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
c63313c605
commit
01d2de39cd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue