Commit aba1a8d7 authored by Brian Masney's avatar Brian Masney Committed by Jonathan Cameron

staging: iio: isl29018: combine two return statements into one

Use the return value from isl29018_set_integration_time() as the return
value for isl29018_chip_init() since this is the last piece of work
inside that function.
Signed-off-by: default avatarBrian Masney <masneyb@onstation.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 19a00a9d
...@@ -616,12 +616,10 @@ static int isl29018_chip_init(struct isl29018_chip *chip) ...@@ -616,12 +616,10 @@ static int isl29018_chip_init(struct isl29018_chip *chip)
status = isl29018_set_integration_time(chip, status = isl29018_set_integration_time(chip,
isl29018_int_utimes[chip->type][chip->int_time]); isl29018_int_utimes[chip->type][chip->int_time]);
if (status < 0) { if (status < 0)
dev_err(dev, "Init of isl29018 fails\n"); dev_err(dev, "Init of isl29018 fails\n");
return status;
}
return 0; return status;
} }
static const struct iio_info isl29018_info = { static const struct iio_info isl29018_info = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment