commit | 86103cffe8834fef0a342fcac82585ff67cda569 | [log] [tgz] |
---|---|---|
author | Guenter Roeck <linux@roeck-us.net> | Tue Aug 28 11:41:41 2018 -0700 |
committer | Guenter Roeck <linux@roeck-us.net> | Wed Oct 10 20:37:13 2018 -0700 |
tree | 87c83be14d1c132fc94e17ee7a757736c20859cc | |
parent | 0debe4d0b86afa5eb9192595c820ed980cabe38b [diff] |
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>