Skip to content

Commit

Permalink
iio:prox:sx9500 trivial simplification of return path in init function.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Vlad Dogaru <vlad.dogaru@intel.com>
  • Loading branch information
Jonathan Cameron committed May 7, 2015
1 parent b91617e commit 1a30295
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/iio/proximity/sx9500.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1a30295

Please sign in to comment.