summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorDeepak R Varma <drv@mailo.com>2022-11-03 04:06:59 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-11-08 16:25:58 +0100
commitf541335e830eb1abf3e4e260fcef98c429165aac (patch)
treec699c06fb7b57e283947e9b0a8ba94a85e6a72eb /tools/perf/scripts/python/export-to-sqlite.py
parent96a53586ec095dcc426df5bc6a568108dcfa8a0a (diff)
staging: rtl8192e: Use min_t/max_t macros for variable comparison
Simplify code by using min_t and max_t helper macros in place of lengthy if/else block oriented logical evaluation and value assignment. This issue is identified by coccicheck using the minmax.cocci file. Use the *_t variants of min/max macros to avoid compiler warnings about data typecast. Also, use u32 as type for min_t macro to avoid any truncation of data associated with enum constant HT_AGG_SIZE_32K. Signed-off-by: Deepak R Varma <drv@mailo.com> Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> Link: https://lore.kernel.org/r/Y2LxC2kziM1TznhO@qemulion Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions