diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-02-12 09:04:46 (GMT) |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-03-03 16:01:04 (GMT) |
commit | a5589cf193202412d9064863452c6c0b7145353e (patch) | |
tree | f4df5f8151f07535ff0533b62f9608e3e168bb81 /drivers/hwmon/lm95241.c | |
parent | 9bf3babf3f6e70723528bece564c57d38d534652 (diff) | |
download | linux-a5589cf193202412d9064863452c6c0b7145353e.tar.xz |
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>
Diffstat (limited to 'drivers/hwmon/lm95241.c')
-rw-r--r-- | drivers/hwmon/lm95241.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwmon/lm95241.c b/drivers/hwmon/lm95241.c index 7d5ce89..cdf19ad 100644 --- a/drivers/hwmon/lm95241.c +++ b/drivers/hwmon/lm95241.c @@ -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); |