platform/x86: asus-wmi: Replace sscanf() with kstrtoint()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 16 Aug 2019 11:15:55 +0000 (14:15 +0300)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 16 Aug 2019 11:20:31 +0000 (14:20 +0300)
commita5556fa1107d5b9cda75632c6ece1b4612dd1607
tree39204230358574be5a76c5258c5f1f7eac34c81a
parent84d8e80b0a3612aad746837e95d8efe324fdc5c6
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: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/asus-wmi.c