]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
HID: bpf: Artist24: remove unused variable
authorBenjamin Tissoires <bentiss@kernel.org>
Sat, 8 Jun 2024 09:01:24 +0000 (11:01 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Fri, 14 Jun 2024 09:20:20 +0000 (11:20 +0200)
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>
drivers/hid/bpf/progs/XPPen__Artist24.bpf.c

index bc0b85c38445813e4392b2167111fe124c977d31..d4d062c3a653b6b2ef50cb788179a5b5fc0f7d16 100644 (file)
@@ -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 */