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>
这个提交包含在:
@@ -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);
|
||||
|
||||
|
在新工单中引用
屏蔽一个用户