summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDaniel Latypov <dlatypov@google.com>2022-01-28 00:52:22 +0300
committerShuah Khan <skhan@linuxfoundation.org>2022-01-31 21:55:48 +0300
commitc2741453478badf571ef020d160053e8d5e1ba94 (patch)
tree5229172b01762e0a8f79b4401c3baf4026872a93 /tools/perf/scripts/python/export-to-postgresql.py
parent2b6861e2372bac68861c54372f68f6016a7484fc (diff)
downloadlinux-c2741453478badf571ef020d160053e8d5e1ba94.tar.xz
kunit: cleanup assertion macro internal variables
All the operands should be tagged `const`. We're only assigning them to variables so that we can compare them (e.g. check if left == right, etc.) and avoid evaluating expressions multiple times. There's no need for them to be mutable. Also rename the helper variable `loc` to `__loc` like we do with `__assertion` and `__strs` to avoid potential name collisions with user code. Signed-off-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Reviewed-by: Brendan Higgins <brendanhiggins@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions