2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 09:43:59 +08:00

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>
This commit is contained in:
Jonathan Cameron 2015-05-02 11:29:42 +01:00
parent b91617ea62
commit 1a30295a09

View File

@ -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,