提交 5ec25c93 编写于 作者: J Jean Delvare

hwmon: (lm63) Avoid initializing the same field twice

data is kzalloc'd, so data->valid is already 0.
Signed-off-by: NJean Delvare <jdelvare@suse.de>
Reviewed-by: NGuenter Roeck <linux@roeck-us.net>
上级 e19eea84
......@@ -1121,7 +1121,6 @@ static int lm63_probe(struct i2c_client *client,
return -ENOMEM;
data->client = client;
data->valid = 0;
mutex_init(&data->update_lock);
/* Set the device type */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册