Commit f91d22fc authored by Jean Delvare's avatar Jean Delvare Committed by Guenter Roeck

hwmon: (lm95245) 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>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent a5589cf1
...@@ -440,7 +440,6 @@ static void lm95245_init_client(struct i2c_client *client) ...@@ -440,7 +440,6 @@ static void lm95245_init_client(struct i2c_client *client)
{ {
struct lm95245_data *data = i2c_get_clientdata(client); struct lm95245_data *data = i2c_get_clientdata(client);
data->valid = 0;
data->interval = lm95245_read_conversion_rate(client); data->interval = lm95245_read_conversion_rate(client);
data->config1 = i2c_smbus_read_byte_data(client, data->config1 = i2c_smbus_read_byte_data(client,
......
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