summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-04-04 18:01:33 +0200
committerJean Delvare <jdelvare@suse.de>2014-04-04 18:01:33 +0200
commit5ec25c93e0397a02a37cb2f091da0e28fe284566 (patch)
tree65c9e0ee0ab2783555178d0686e7c18b0302125b /drivers/hwmon
parente19eea84078dfa5ab63c661b3d4367c8621590e0 (diff)
hwmon: (lm63) Avoid initializing the same field twice
data is kzalloc'd, so data->valid is already 0. Signed-off-by: Jean Delvare <jdelvare@suse.de> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r--drivers/hwmon/lm63.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c
index c5291645e5d..848b9611151 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -1121,7 +1121,6 @@ static int lm63_probe(struct i2c_client *client,
return -ENOMEM;
data->client = client;
- data->valid = 0;
mutex_init(&data->update_lock);
/* Set the device type */