summaryrefslogtreecommitdiffstats
path: root/drivers/iio/accel/kxsd9-i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2021-10-13 22:32:12 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-10-19 09:30:45 +0200
commitdf2171c668bdecc9122cc8f66bd0639baeae5c6b (patch)
tree00e015af91514481ed7cd9eeb8980c7b43dc088f /drivers/iio/accel/kxsd9-i2c.c
parentiio: accel: bmi088: Make bmi088_accel_core_remove() return void (diff)
downloadlinux-df2171c668bdecc9122cc8f66bd0639baeae5c6b.tar.xz
linux-df2171c668bdecc9122cc8f66bd0639baeae5c6b.zip
iio: accel: kxsd9: Make kxsd9_common_remove() return void
Up to now kxsd9_common_remove() returns zero unconditionally. Make it return void instead which makes it easier to see in the callers that there is no error to handle. Also the return value of i2c and spi remove callbacks is ignored anyway. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com> Link: https://lore.kernel.org/r/20211013203223.2694577-5-u.kleine-koenig@pengutronix.de Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel/kxsd9-i2c.c')
-rw-r--r--drivers/iio/accel/kxsd9-i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/iio/accel/kxsd9-i2c.c b/drivers/iio/accel/kxsd9-i2c.c
index b580d605f848..274b41a6e603 100644
--- a/drivers/iio/accel/kxsd9-i2c.c
+++ b/drivers/iio/accel/kxsd9-i2c.c
@@ -34,7 +34,9 @@ static int kxsd9_i2c_probe(struct i2c_client *i2c,
static int kxsd9_i2c_remove(struct i2c_client *client)
{
- return kxsd9_common_remove(&client->dev);
+ kxsd9_common_remove(&client->dev);
+
+ return 0;
}
static const struct of_device_id kxsd9_of_match[] = {