diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2024-10-01 08:42:36 -0700 |
---|---|---|
committer | Benjamin Tissoires <bentiss@kernel.org> | 2024-10-04 10:36:39 +0200 |
commit | 61595012f28036a58293df5a2ab75f80ca15c327 (patch) | |
tree | a119b068e20e1918a7026df18dc61aa8a749aa38 /scripts/bpf_doc.py | |
parent | f23aa4c0761a70bfd046dd5755281667f0769a94 (diff) |
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 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions