summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorKarolina Drobnik <karolinadrobnik@gmail.com>2021-10-21 10:27:53 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-10-22 11:06:03 +0200
commit9da4b50c384c9d0567cedfb2e65d39d8c6b2a674 (patch)
tree3e6c25df9260aee77334aee2723e6382230df00d /tools/perf/scripts/python/exported-sql-viewer.py
parentc31237afcd6345d7a98c227e796088ed5bea0d44 (diff)
staging: vt6655: Use named constants when checking preamble type
Compare `preamble_type` to a predefined constant, `PREAMBLE_SHORT`, instead of a literal in `bb_get_frame_time` and `vnt_get_phy_field` functions. Thanks to this change, it is clear that we check the type of a preamble, not just compare it against an arbitrary value. Remove a redundant comment. Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com> Link: https://lore.kernel.org/r/20211021092753.511863-1-karolinadrobnik@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions