Skip to content

Commit

Permalink
hwmon (lm63) Do not overwrite data->kind
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
  • Loading branch information
Nicolin Chen authored and groeck committed Dec 16, 2018
1 parent 323aeb0 commit b6611bc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/hwmon/lm63.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit b6611bc

Please sign in to comment.