Skip to content
Commit a5556fa1 authored by Andy Shevchenko's avatar Andy Shevchenko
Browse files

platform/x86: asus-wmi: Replace sscanf() with kstrtoint()



The use of sscanf() is an overkill here. Moreover, there is no need to check
for count to be 0, since it's guaranteed by sysfs not to be.

Taking above into account, replace sscanf() with kstrtoint() calls.

Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
parent 84d8e80b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment