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:
sayli karnik 2017-03-13 23:26:18 +05:30 committed by Jonathan Cameron
parent c63313c605
commit 01d2de39cd
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}