diff options
author | Jean Delvare <jdelvare@suse.de> | 2014-04-04 12:01:34 -0400 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2014-04-04 12:01:34 -0400 |
commit | 6cf0a91ebe11cee1df871619af4eb58c9af32666 (patch) | |
tree | ace57336a6a44dd606466c9ae79b7998c1a2f2ec /drivers/hwmon/lm92.c | |
parent | 5b58157598f93089ccda90aabd98f27865b344da (diff) |
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/lm92.c')
-rw-r--r-- | drivers/hwmon/lm92.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/hwmon/lm92.c b/drivers/hwmon/lm92.c index 9d0e87a4f0cb..b9022db6511a 100644 --- a/drivers/hwmon/lm92.c +++ b/drivers/hwmon/lm92.c | |||
@@ -380,7 +380,6 @@ static int lm92_probe(struct i2c_client *new_client, | |||
380 | return -ENOMEM; | 380 | return -ENOMEM; |
381 | 381 | ||
382 | i2c_set_clientdata(new_client, data); | 382 | i2c_set_clientdata(new_client, data); |
383 | data->valid = 0; | ||
384 | mutex_init(&data->update_lock); | 383 | mutex_init(&data->update_lock); |
385 | 384 | ||
386 | /* Initialize the chipset */ | 385 | /* Initialize the chipset */ |