hwmon: (iio_hwmon) Do not duplicate or sanitize fixed string
authorGuenter Roeck <linux@roeck-us.net>
Tue, 28 Aug 2018 18:41:41 +0000 (11:41 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Thu, 11 Oct 2018 03:37:13 +0000 (20:37 -0700)
commit86103cffe8834fef0a342fcac82585ff67cda569
tree87c83be14d1c132fc94e17ee7a757736c20859cc
parent0debe4d0b86afa5eb9192595c820ed980cabe38b
hwmon: (iio_hwmon) Do not duplicate or sanitize fixed string

Calling devm_kstrdup() on a fixed string is unnecessary, as is validating
its contents. Rearrange the code to avoid both.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/iio_hwmon.c