summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorJulien Stephan <jstephan@baylibre.com>2024-10-31 16:27:10 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-11-03 20:33:44 +0000
commite44a4e6c21dc8371ca3d3bca34d2d42cf1f5b093 (patch)
treec5360580179624401643e6b1af608a5295bc2b61 /drivers/iio
parent6921a89dc18c2d6ca0e54335b494a39ecde155e7 (diff)
downloadlinux-stable-e44a4e6c21dc8371ca3d3bca34d2d42cf1f5b093.tar.gz
linux-stable-e44a4e6c21dc8371ca3d3bca34d2d42cf1f5b093.tar.bz2
linux-stable-e44a4e6c21dc8371ca3d3bca34d2d42cf1f5b093.zip
iio: light: apds9960: remove useless return
return 0 statement at the end of apds9960_read_event_config is useless. Remove it. Signed-off-by: Julien Stephan <jstephan@baylibre.com> Link: https://patch.msgid.link/20241031-iio-fix-write-event-config-signature-v2-15-2bcacbb517a2@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/light/apds9960.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/light/apds9960.c b/drivers/iio/light/apds9960.c
index 7b3da8888569..d30441d33703 100644
--- a/drivers/iio/light/apds9960.c
+++ b/drivers/iio/light/apds9960.c
@@ -749,8 +749,6 @@ static int apds9960_read_event_config(struct iio_dev *indio_dev,
default:
return -EINVAL;
}
-
- return 0;
}
static int apds9960_write_event_config(struct iio_dev *indio_dev,