aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/lm63.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-04-04 12:01:33 -0400
committerJean Delvare <jdelvare@suse.de>2014-04-04 12:01:33 -0400
commit5ec25c93e0397a02a37cb2f091da0e28fe284566 (patch)
tree65c9e0ee0ab2783555178d0686e7c18b0302125b /drivers/hwmon/lm63.c
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/lm63.c')
-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 c5291645e5dc..848b9611151f 100644
--- a/drivers/hwmon/lm63.c
+++ b/drivers/hwmon/lm63.c
@@ -1121,7 +1121,6 @@ static int lm63_probe(struct i2c_client *client,
1121 return -ENOMEM; 1121 return -ENOMEM;
1122 1122
1123 data->client = client; 1123 data->client = client;
1124 data->valid = 0;
1125 mutex_init(&data->update_lock); 1124 mutex_init(&data->update_lock);
1126 1125
1127 /* Set the device type */ 1126 /* Set the device type */