Commit 5ec25c93 authored by Jean Delvare's avatar Jean Delvare

hwmon: (lm63) Avoid initializing the same field twice

data is kzalloc'd, so data->valid is already 0.
Signed-off-by: default avatarJean Delvare <jdelvare@suse.de>
Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent e19eea84
...@@ -1121,7 +1121,6 @@ static int lm63_probe(struct i2c_client *client, ...@@ -1121,7 +1121,6 @@ static int lm63_probe(struct i2c_client *client,
return -ENOMEM; return -ENOMEM;
data->client = client; data->client = client;
data->valid = 0;
mutex_init(&data->update_lock); mutex_init(&data->update_lock);
/* Set the device type */ /* Set the device type */
......
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