diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-04 18:01:33 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-04-04 18:01:33 +0200 |
commit | 5ec25c93e0397a02a37cb2f091da0e28fe284566 (patch) | |
tree | 65c9e0ee0ab2783555178d0686e7c18b0302125b /drivers/hwmon | |
parent | e19eea84078dfa5ab63c661b3d4367c8621590e0 (diff) | |
download | blackbird-op-linux-5ec25c93e0397a02a37cb2f091da0e28fe284566.tar.gz blackbird-op-linux-5ec25c93e0397a02a37cb2f091da0e28fe284566.zip |
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.c | 1 |
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, return -ENOMEM; data->client = client; - data->valid = 0; mutex_init(&data->update_lock); /* Set the device type */ |