]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (core) remove redundant cast
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Fri, 26 Oct 2018 22:30:59 +0000 (00:30 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 3 Dec 2018 00:25:28 +0000 (16:25 -0800)
commit0023635f5ee98e8c5069f3516095951565f1ec9f
tree9dee5c2961377332d8540915c9e953b3999e8683
parent7c9bda8be11086645b71785a1d5fdb35bb6e307a
hwmon: (core) remove redundant cast

struct attribute::name which this local variable name is eventually
assigned to is "const char*", and so is the template parameter. We might
as well preserve the constness all the way through.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/hwmon.c