summaryrefslogtreecommitdiffstats
path: root/drivers
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 08:01:04 -0800
commitf91d22fc3ebd84423864ede097fb2a27d8808c82 (patch)
treebae10e2a621229e11607c8ddca98912bf7a74dcf /drivers
parenta5589cf193202412d9064863452c6c0b7145353e (diff)
downloadblackbird-op-linux-f91d22fc3ebd84423864ede097fb2a27d8808c82.tar.gz
blackbird-op-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')
-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,
OpenPOWER on IntegriCloud