summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorBreno Leitao <leitao@debian.org>2025-02-28 04:50:18 -0800
committerPaolo Abeni <pabeni@redhat.com>2025-03-04 15:28:27 +0100
commitefb878fbe8d1fae3bf1974628e6d267dc861207e (patch)
treead953df41a0d357fbeca98d3506629959a42ecb6 /tools/perf/scripts/python/exported-sql-viewer.py
parent8a683295c2264e66cd8522ab6a15edfb52aa20bc (diff)
netconsole: Make boolean comparison consistent
Convert the current state assignment to use explicit boolean conversion, making the code more robust and easier to read. This change adds a double-negation operator to ensure consistent boolean conversion as suggested by Paolo[1]. This approach aligns with the existing pattern used in sysdata_cpu_nr_enabled_show(). Link: https://lore.kernel.org/all/7309e760-63b0-4b58-ad33-2fb8db361141@redhat.com/ [1] Signed-off-by: Breno Leitao <leitao@debian.org> Reviewed-by: Simon Horman <horms@kernel.org> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions