hwmon: (lm63) Avoid initializing the same field twice
data is kzalloc'd, so data->valid is already 0. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
parent
e19eea8407
commit
5ec25c93e0
1 changed files with 0 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Reference in a new issue