summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2024-10-01 18:42:36 +0300
committerBenjamin Tissoires <bentiss@kernel.org>2024-10-04 11:36:39 +0300
commit61595012f28036a58293df5a2ab75f80ca15c327 (patch)
treea119b068e20e1918a7026df18dc61aa8a749aa38 /tools/perf/scripts/python/export-to-postgresql.py
parentf23aa4c0761a70bfd046dd5755281667f0769a94 (diff)
downloadlinux-61595012f28036a58293df5a2ab75f80ca15c327.tar.xz
HID: simplify code in fetch_item()
We can easily calculate the size of the item using arithmetic (shifts). This allows to pull duplicated code out of the switch statement, making it cleaner. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com> Link: https://patch.msgid.link/ZvwYbESMZ667QZqY@google.com Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions