hwmon: (lm63) Avoid initializing the same field twice
authorJean Delvare <jdelvare@suse.de>
Fri, 4 Apr 2014 16:01:33 +0000 (18:01 +0200)
committerJean Delvare <jdelvare@suse.de>
Fri, 4 Apr 2014 16:01:33 +0000 (18:01 +0200)
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>
drivers/hwmon/lm63.c

index c5291645e5dcddc52ce4db5a01c9b1fd7b2a63cf..848b9611151f9507c21c74d2de94220ab475d2e8 100644 (file)
@@ -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 */