提交 1a30295a 编写于 作者: J Jonathan Cameron

iio:prox:sx9500 trivial simplification of return path in init function.

Signed-off-by: NJonathan Cameron <jic23@kernel.org>
Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
Cc: Vlad Dogaru <vlad.dogaru@intel.com>
上级 b91617ea
......@@ -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,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册