From: Jonathan Cameron Date: Sat, 2 May 2015 10:29:42 +0000 (+0100) Subject: iio:prox:sx9500 trivial simplification of return path in init function. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1a30295a09e022c57d7ce6d94c0134af9afaf8d6;p=openwrt%2Fstaging%2Fblogic.git iio:prox:sx9500 trivial simplification of return path in init function. Signed-off-by: Jonathan Cameron Reported-by: kbuild test robot Cc: Vlad Dogaru --- diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c index f1e9d734b6b6..2042e375f835 100644 --- a/drivers/iio/proximity/sx9500.c +++ b/drivers/iio/proximity/sx9500.c @@ -859,11 +859,7 @@ static int sx9500_init_device(struct iio_dev *indio_dev) return ret; } - ret = sx9500_init_compensation(indio_dev); - if (ret < 0) - return ret; - - return 0; + return sx9500_init_compensation(indio_dev); } static void sx9500_gpio_probe(struct i2c_client *client,