From 6cf0a91ebe11cee1df871619af4eb58c9af32666 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Fri, 4 Apr 2014 18:01:34 +0200 Subject: 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 Reviewed-by: Guenter Roeck --- drivers/hwmon/lm93.c | 1 - 1 file changed, 1 deletion(-) (limited to 'drivers/hwmon/lm93.c') diff --git a/drivers/hwmon/lm93.c b/drivers/hwmon/lm93.c index 6f1c6c0dbaf5..adf23165a6a7 100644 --- a/drivers/hwmon/lm93.c +++ b/drivers/hwmon/lm93.c @@ -2754,7 +2754,6 @@ static int lm93_probe(struct i2c_client *client, i2c_set_clientdata(client, data); /* housekeeping */ - data->valid = 0; data->update = update; mutex_init(&data->update_lock); -- cgit v1.2.3