]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon (lm63) Do not overwrite data->kind
authorNicolin Chen <nicoleotsuka@gmail.com>
Tue, 13 Nov 2018 04:36:56 +0000 (20:36 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 16 Dec 2018 23:13:13 +0000 (15:13 -0800)
commitb3662e9aecfb671afea9d1c54f29ab2677dc85ad
tree58229f5409c1dba7982046f41a7ed31c74ffce86
parente577ed5ff6d2b3de78a9490faf5b77b89bb44c67
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>
drivers/hwmon/lm63.c