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 c529164..848b961 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 */