From: Nicolin Chen Date: Tue, 13 Nov 2018 04:36:56 +0000 (-0800) Subject: hwmon (lm63) Do not overwrite data->kind X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b6611bcd5144e61a9cc21ee55c74aff688dff3f0;p=openwrt%2Fstaging%2Fblogic.git hwmon (lm63) Do not overwrite data->kind According to the code right before the removed line, data->kind should be either from DT or from id pointer. So there shouldn't be an additional overwriting after the if-else statement. So this patch just removes the overwriting line. Signed-off-by: Nicolin Chen Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/lm63.c b/drivers/hwmon/lm63.c index 4c1770920d29..eac54b9cdeec 100644 --- a/drivers/hwmon/lm63.c +++ b/drivers/hwmon/lm63.c @@ -1120,7 +1120,6 @@ static int lm63_probe(struct i2c_client *client, data->kind = (enum chips)of_device_get_match_data(&client->dev); else data->kind = id->driver_data; - data->kind = id->driver_data; if (data->kind == lm64) data->temp2_offset = 16000;