diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-07-07 20:44:01 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-07-24 20:17:18 +0300 |
commit | c5b974bee9d2ceae4c441ae5a01e498c2674e100 (patch) | |
tree | f024f537c8847efa76048a8183011c5e6088d585 /block/blk-core.c | |
parent | 5a4e33c1c53ae7d4425f7d94e60e4458a37b349e (diff) | |
download | linux-c5b974bee9d2ceae4c441ae5a01e498c2674e100.tar.xz |
iio: sca3000: Fix missing return in switch
The IIO_CHAN_INFO_LOW_PASS_FILTER_3DB_FREQUENCY case is missing a
return and will fall through to the default case and errorenously
return -EINVAL.
Fix this by adding in missing *return ret*.
Fixes: 626f971b5b07 ("staging:iio:accel:sca3000 Add write support to the low pass filter control")
Reported-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'block/blk-core.c')
0 files changed, 0 insertions, 0 deletions