aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/atxp1.c
diff options
context:
space:
mode:
authorJean Delvare <jdelvare@suse.de>2014-04-04 18:01:34 +0200
committerJean Delvare <jdelvare@suse.de>2014-04-04 18:01:34 +0200
commit6cf0a91ebe11cee1df871619af4eb58c9af32666 (patch)
treeace57336a6a44dd606466c9ae79b7998c1a2f2ec /drivers/hwmon/atxp1.c
parenthwmon: (pc87360) Avoid initializing the same field twice (diff)
downloadlinux-dev-6cf0a91ebe11cee1df871619af4eb58c9af32666.tar.xz
linux-dev-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/atxp1.c')
-rw-r--r--drivers/hwmon/atxp1.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/hwmon/atxp1.c b/drivers/hwmon/atxp1.c
index ddff02e3e66f..6edce42c61d5 100644
--- a/drivers/hwmon/atxp1.c
+++ b/drivers/hwmon/atxp1.c
@@ -353,8 +353,6 @@ static int atxp1_probe(struct i2c_client *new_client,
data->vrm = vid_which_vrm();
i2c_set_clientdata(new_client, data);
- data->valid = 0;
-
mutex_init(&data->update_lock);
/* Register sysfs hooks */