diff options
author | SeongJae Park <sj@kernel.org> | 2024-05-03 21:03:12 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2024-05-12 01:41:34 +0300 |
commit | 06cf8ce12cd659a3064c2e7b0208a2c0a3426838 (patch) | |
tree | 61a8a4b17e435a5e51cd4155c519b988615e6908 /tools/perf/scripts/python/stackcollapse.py | |
parent | e799fda6926ec01f8488023d4f891289996322aa (diff) | |
download | linux-06cf8ce12cd659a3064c2e7b0208a2c0a3426838.tar.xz |
selftests/damon/_damon_sysfs: use 'is' instead of '==' for 'None'
_damon_sysfs.py is using '==' or '!=' for 'None'. Since 'None' is a
singleton, using 'is' or 'is not' is more efficient. Use the more
efficient one.
Link: https://lkml.kernel.org/r/20240503180318.72798-5-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions