summaryrefslogtreecommitdiff
path: root/drivers/hwmon/lm63.c
diff options
context:
space:
mode:
authorNicolin Chen <nicoleotsuka@gmail.com>2018-11-12 20:36:56 -0800
committerGuenter Roeck <linux@roeck-us.net>2018-11-18 14:42:23 -0800
commit32d3520d53cb02bae3b172fcc88d07942fed6e30 (patch)
treec7f121ae3fd89c6a253648dadf6995f2cf73d4b0 /drivers/hwmon/lm63.c
parent6eb1bbf3db4b969a865a09cc324bff9cea9af3fe (diff)
downloadlinux-next-32d3520d53cb02bae3b172fcc88d07942fed6e30.tar.gz
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 <nicoleotsuka@gmail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/lm63.c')
-rw-r--r--drivers/hwmon/lm63.c1
1 files changed, 0 insertions, 1 deletions
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;