From: Jean Delvare Date: Fri, 4 Apr 2014 16:01:33 +0000 (+0200) Subject: hwmon: (lm63) Avoid initializing the same field twice X-Git-Tag: v6.6-pxa1908~23503^2~10 X-Git-Url: https://git.dujemihanovic.xyz/?a=commitdiff_plain;h=5ec25c93e0397a02a37cb2f091da0e28fe284566;p=linux.git hwmon: (lm63) Avoid initializing the same field twice data is kzalloc'd, so data->valid is already 0. Signed-off-by: Jean Delvare Reviewed-by: Guenter Roeck --- diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c index c5291645e5dc..848b9611151f 100644 --- a/drivers/hwmon/lm63.c +++ b/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 */