diff options
author | 2024-10-01 08:42:36 -0700 | |
---|---|---|
committer | 2024-10-04 10:36:39 +0200 | |
commit | 61595012f28036a58293df5a2ab75f80ca15c327 (patch) | |
tree | a119b068e20e1918a7026df18dc61aa8a749aa38 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Merge tag 'hid-for-linus-2024090201' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid (diff) | |
download | wireguard-linux-61595012f28036a58293df5a2ab75f80ca15c327.tar.xz wireguard-linux-61595012f28036a58293df5a2ab75f80ca15c327.zip |
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions