diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-02-12 10:05:27 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-03-03 17:01:04 +0100 |
commit | f91d22fc3ebd84423864ede097fb2a27d8808c82 (patch) | |
tree | bae10e2a621229e11607c8ddca98912bf7a74dcf /drivers/hwmon/lm95245.c | |
parent | hwmon: (lm95241) Avoid initializing the same field twice (diff) | |
download | linux-f91d22fc3ebd84423864ede097fb2a27d8808c82.tar.xz linux-f91d22fc3ebd84423864ede097fb2a27d8808c82.zip |
hwmon: (lm95245) Avoid initializing the same field twice
data is kzalloc'd, so data->valid is already 0.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm95245.c')
-rw-r--r-- | drivers/hwmon/lm95245.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/lm95245.c b/drivers/hwmon/lm95245.c index a6c85f0ff8f3..3f0956e18a23 100644 --- a/drivers/hwmon/lm95245.c +++ b/drivers/hwmon/lm95245.c @@ -440,7 +440,6 @@ static void lm95245_init_client(struct i2c_client *client) { struct lm95245_data *data = i2c_get_clientdata(client); - data->valid = 0; data->interval = lm95245_read_conversion_rate(client); data->config1 = i2c_smbus_read_byte_data(client, |