diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-04 18:01:34 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-04-04 18:01:34 +0200 |
commit | 6cf0a91ebe11cee1df871619af4eb58c9af32666 (patch) | |
tree | ace57336a6a44dd606466c9ae79b7998c1a2f2ec /drivers/hwmon/lm87.c | |
parent | 5b58157598f93089ccda90aabd98f27865b344da (diff) | |
download | linux-6cf0a91ebe11cee1df871619af4eb58c9af32666.tar.gz linux-6cf0a91ebe11cee1df871619af4eb58c9af32666.tar.bz2 linux-6cf0a91ebe11cee1df871619af4eb58c9af32666.zip |
hwmon: Avoid initializing the same field twice
All hwmon drivers allocate their data structure with some form of
kzalloc, so setting data fields to zero explicitly is a waste of time.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm87.c')
-rw-r--r-- | drivers/hwmon/lm87.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/lm87.c b/drivers/hwmon/lm87.c index 4c5f20231c1a..ba1d83d48056 100644 --- a/drivers/hwmon/lm87.c +++ b/drivers/hwmon/lm87.c @@ -903,7 +903,6 @@ static int lm87_probe(struct i2c_client *client, const struct i2c_device_id *id) return -ENOMEM; i2c_set_clientdata(client, data); - data->valid = 0; mutex_init(&data->update_lock); /* Initialize the LM87 chip */ |