summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm95245.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-02-12 10:05:27 +0100
committerGuenter Roeck <linux@roeck-us.net>2014-03-03 17:01:04 +0100
commitf91d22fc3ebd84423864ede097fb2a27d8808c82 (patch)
treebae10e2a621229e11607c8ddca98912bf7a74dcf /drivers/hwmon/lm95245.c
parenthwmon: (lm95241) Avoid initializing the same field twice (diff)
downloadlinux-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.c1
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,