diff options
author | Jonathan Cameron <jic23@kernel.org> | 2015-05-02 13:29:42 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2015-05-07 12:42:31 +0300 |
commit | 1a30295a09e022c57d7ce6d94c0134af9afaf8d6 (patch) | |
tree | 339361a2a654adab503940b097e504d8cf2d24a2 /drivers/iio/proximity | |
parent | b91617ea62af5558af598ae9ad069db96f2ab00e (diff) | |
download | linux-1a30295a09e022c57d7ce6d94c0134af9afaf8d6.tar.xz |
iio:prox:sx9500 trivial simplification of return path in init function.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Vlad Dogaru <vlad.dogaru@intel.com>
Diffstat (limited to 'drivers/iio/proximity')
-rw-r--r-- | drivers/iio/proximity/sx9500.c | 6 |
1 files changed, 1 insertions, 5 deletions
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, |