iio: frequency: admv1014: return -EINVAL directly
authorAntoniu Miclaus <antoniu.miclaus@analog.com>
Fri, 19 Aug 2022 10:41:17 +0000 (13:41 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 19 Aug 2022 17:07:22 +0000 (18:07 +0100)
commit30475ef2836ee47965e424b79e54e35c18ff0aeb
treed8e8b7179847edeb2af42e2afe91348f74a01823
parentb82217e73b5aa6db8453ad91b929ca2366e47184
iio: frequency: admv1014: return -EINVAL directly

Remove extra step where the error code is assigned to the `ret`
variable.

Return instead error code directly.

Signed-off-by: Antoniu Miclaus <antoniu.miclaus@analog.com>
Link: https://lore.kernel.org/r/20220819104117.4600-1-antoniu.miclaus@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/frequency/admv1014.c