Skip to content
Commit 86103cff authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: default avatarGuenter Roeck <linux@roeck-us.net>
parent 0debe4d0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment