]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
HID: bpf: constify parameter rdesc of call_hid_bpf_rdesc_fixup()
authorThomas Weißschuh <linux@weissschuh.net>
Sat, 3 Aug 2024 12:34:17 +0000 (14:34 +0200)
committerBenjamin Tissoires <bentiss@kernel.org>
Tue, 27 Aug 2024 14:18:51 +0000 (16:18 +0200)
commita707f85d47cad3978bef8fe90c7a79e3998e9d36
treead444a626d5dbd28025a3e6758ed54fab147d42d
parent6e4436539ae182dc86d57d13849862bcafaa4709
HID: bpf: constify parameter rdesc of call_hid_bpf_rdesc_fixup()

The parameter is never modified, so mark it as const.
Also inline the return statement to avoid a type mismatch error.

This is a prerequisite for constification changes in the HID core.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Link: https://patch.msgid.link/20240803-hid-const-fixup-v2-1-f53d7a7b29d8@weissschuh.net
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
drivers/hid/bpf/hid_bpf_dispatch.c
include/linux/hid_bpf.h