Skip to content

Commit

Permalink
HID: bpf: Artist24: remove unused variable
Browse files Browse the repository at this point in the history
warning: unused variable ‘tilt’ [-Wunused-variable]

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://lore.kernel.org/r/20240608-hid_bpf_struct_ops-v3-12-6ac6ade58329@kernel.org
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
  • Loading branch information
Benjamin Tissoires committed Jun 14, 2024
1 parent 5f42e19 commit 26ba1e0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/hid/bpf/progs/XPPen__Artist24.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ int BPF_PROG(xppen_24_fix_eraser, struct hid_bpf_ctx *hctx)
__u8 *data = hid_bpf_get_data(hctx, 0 /* offset */, 10 /* size */);
__u8 current_state, changed_state;
bool prev_tip;
__u16 tilt;

if (!data)
return 0; /* EPERM check */
Expand Down

0 comments on commit 26ba1e0

Please sign in to comment.