From: Jean Delvare Date: Fri, 4 Apr 2014 16:01:33 +0000 (+0200) Subject: hwmon: (lm63) Avoid initializing the same field twice X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5ec25c93e0397a02a37cb2f091da0e28fe284566;p=openwrt%2Fstaging%2Fblogic.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 */