bpf: Remove now-unnecessary NULL checks for KF_RELEASE kfuncs
[platform/kernel/linux-starfive.git] / net / bpf / test_run.c
index 8d6b312..27587f1 100644 (file)
@@ -615,9 +615,6 @@ bpf_kfunc_call_memb_acquire(void)
 
 __bpf_kfunc void bpf_kfunc_call_test_release(struct prog_test_ref_kfunc *p)
 {
-       if (!p)
-               return;
-
        refcount_dec(&p->cnt);
 }