diff options
author | Josh Poimboeuf <[email protected]> | 2017-02-13 19:42:38 -0600 |
---|---|---|
committer | Jiri Kosina <[email protected]> | 2017-03-08 09:23:52 +0100 |
commit | 68ae4b2b687c3da59ca1d762646ddece4ea1c438 (patch) | |
tree | 6e0ebffd92c74bf41a8c0e587456cfd67db57347 /lib/netdev-notifier-error-inject.c | |
parent | c349cdcaba589fb49cf105093ebc695eb8b9ff08 (diff) |
livepatch: use kstrtobool() in enabled_store()
The sysfs enabled value is a boolean, so kstrtobool() is a better fit
for parsing the input string since it does the range checking for us.
Suggested-by: Petr Mladek <[email protected]>
Signed-off-by: Josh Poimboeuf <[email protected]>
Acked-by: Miroslav Benes <[email protected]>
Reviewed-by: Petr Mladek <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions