diff options
author | 2019-08-16 14:15:55 +0300 | |
---|---|---|
committer | 2019-08-16 14:20:31 +0300 | |
commit | a5556fa1107d5b9cda75632c6ece1b4612dd1607 (patch) | |
tree | 39204230358574be5a76c5258c5f1f7eac34c81a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | platform/x86: asus-wmi: Refactor charge_threshold_store() (diff) | |
download | wireguard-linux-a5556fa1107d5b9cda75632c6ece1b4612dd1607.tar.xz wireguard-linux-a5556fa1107d5b9cda75632c6ece1b4612dd1607.zip |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions