diff options
| author | Josh Poimboeuf <[email protected]> | 2017-02-14 01:42:38 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2017-03-08 08:23:52 +0000 |
| commit | 68ae4b2b687c3da59ca1d762646ddece4ea1c438 (patch) | |
| tree | 6e0ebffd92c74bf41a8c0e587456cfd67db57347 /net/unix/af_unix.c | |
| parent | livepatch: move patching functions into patch.c (diff) | |
| download | kernel-68ae4b2b687c3da59ca1d762646ddece4ea1c438.tar.gz kernel-68ae4b2b687c3da59ca1d762646ddece4ea1c438.zip | |
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
