aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorDmitry Torokhov <[email protected]>2024-10-01 08:42:36 -0700
committerBenjamin Tissoires <[email protected]>2024-10-04 10:36:39 +0200
commit61595012f28036a58293df5a2ab75f80ca15c327 (patch)
treea119b068e20e1918a7026df18dc61aa8a749aa38 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentf23aa4c0761a70bfd046dd5755281667f0769a94 (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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions