hwmon: (lm95241) Avoid initializing the same field twice

data is kzalloc'd, so data->valid and data->model are already 0.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
This commit is contained in:
Jean Delvare 2014-02-12 10:04:46 +01:00 committed by Guenter Roeck
parent 9bf3babf3f
commit a5589cf193

View file

@ -363,9 +363,7 @@ static void lm95241_init_client(struct i2c_client *client,
struct lm95241_data *data)
{
data->interval = HZ; /* 1 sec default */
data->valid = 0;
data->config = CFG_CR0076;
data->model = 0;
data->trutherm = (TT_OFF << TT1_SHIFT) | (TT_OFF << TT2_SHIFT);
i2c_smbus_write_byte_data(client, LM95241_REG_RW_CONFIG, data->config);