Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

sayli karnik and committed by
Jonathan Cameron
01d2de39 c63313c6

+1 -2
+1 -2
drivers/staging/iio/frequency/ad9834.c
··· 149 149 150 150 ret = kstrtoul(buf, 10, &val); 151 151 if (ret) 152 - goto error_ret; 152 + return ret; 153 153 154 154 mutex_lock(&st->lock); 155 155 switch ((u32)this_attr->address) { ··· 211 211 } 212 212 mutex_unlock(&st->lock); 213 213 214 - error_ret: 215 214 return ret ? ret : len; 216 215 } 217 216