diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-02-12 10:04:46 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-03-03 08:01:04 -0800 |
commit | a5589cf193202412d9064863452c6c0b7145353e (patch) | |
tree | f4df5f8151f07535ff0533b62f9608e3e168bb81 /drivers/hwmon | |
parent | 9bf3babf3f6e70723528bece564c57d38d534652 (diff) | |
download | linux-a5589cf193202412d9064863452c6c0b7145353e.tar.gz linux-a5589cf193202412d9064863452c6c0b7145353e.tar.bz2 linux-a5589cf193202412d9064863452c6c0b7145353e.zip |
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')
-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 7d5ce89908c2..cdf19adaec79 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); |