Commit b6611bcd authored by Nicolin Chen's avatar Nicolin Chen Committed by Guenter Roeck
Browse files

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: default avatarNicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 323aeb0e
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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;