selftests/damon/_damon_sysfs: use 'is' instead of '==' for 'None'
authorSeongJae Park <sj@kernel.org>
Fri, 3 May 2024 18:03:12 +0000 (11:03 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Sat, 11 May 2024 22:41:34 +0000 (15:41 -0700)
commit06cf8ce12cd659a3064c2e7b0208a2c0a3426838
tree61a8a4b17e435a5e51cd4155c519b988615e6908
parente799fda6926ec01f8488023d4f891289996322aa
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>
tools/testing/selftests/damon/_damon_sysfs.py