]> git.ipfire.org Git - thirdparty/linux.git/commit
HID: bpf: drop dead NULL checks in kfuncs
authorPuranjay Mohan <puranjay@kernel.org>
Fri, 2 Jan 2026 18:00:31 +0000 (10:00 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 2 Jan 2026 20:04:29 +0000 (12:04 -0800)
commit8fe172fa305f14db815bd88133d2030e4a9e107e
treef2c860ceb840e40e3640f23bae3c3127adf2f3aa
parentcd1d60949143b10d8eb7cea111e2b8bfb18fe461
HID: bpf: drop dead NULL checks in kfuncs

As KF_TRUSTED_ARGS is now considered default for all kfuns, the verifier
will not allow passing NULL pointers to these kfuns. These checks for
NULL pointers can therefore be removed.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Link: https://lore.kernel.org/r/20260102180038.2708325-6-puranjay@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
drivers/hid/bpf/hid_bpf_dispatch.c