提交 8f27f732 编写于 作者: A Alison Schofield 提交者: Greg Kroah-Hartman

staging: iio: adt7316: remove useless initialization

Remove the initialization of a variable that is immediately
reassigned.
Signed-off-by: NAlison Schofield <amsfield22@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 e3f95552
......@@ -21,7 +21,7 @@
static int adt7316_i2c_read(void *client, u8 reg, u8 *data)
{
struct i2c_client *cl = client;
int ret = 0;
int ret;
ret = i2c_smbus_write_byte(cl, reg);
if (ret < 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册