瀏覽代碼

hwmon: (lm63) Avoid initializing the same field twice

data is kzalloc'd, so data->valid is already 0.

Signed-off-by: Jean Delvare <jdelvare@suse.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Jean Delvare 11 年之前
父節點
當前提交
5ec25c93e0
共有 1 個文件被更改,包括 0 次插入1 次删除
  1. 0 1
      drivers/hwmon/lm63.c

+ 0 - 1
drivers/hwmon/lm63.c

@@ -1121,7 +1121,6 @@ static int lm63_probe(struct i2c_client *client,
 		return -ENOMEM;
 
 	data->client = client;
-	data->valid = 0;
 	mutex_init(&data->update_lock);
 
 	/* Set the device type */