diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2022-04-26 14:10:24 +0100 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2022-07-28 14:23:25 -0400 |
commit | e13da9a1dbe4c97431286660ec35eceb50003bb3 (patch) | |
tree | e64d89256a499b1300b604ad689e60e9f8e5e220 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 033312336d67a2ca9b5ff4ad35e5dfd99042d2a3 (diff) |
tools/power turbostat: replace strncmp with single character compare
Using strncmp for a single character comparison is overly complicated,
just use a simpler single character comparison instead. Also stops
static analyzers (such as cppcheck) from complaining about strncmp on
non-null terminated strings.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions