HomeFreeBSD

pf: Remove unneeded NULL check

Description

pf: Remove unneeded NULL check

pidx is never NULL, and is used unconditionally later on in the
function.
Add an assertion, as documentation for the requirement to provide an idx
pointer.

Reported by: clang --analyze
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")

Details

Provenance
kpAuthored on Jul 5 2021, 12:02 PM
Parents
rG211cddf9e3a1: pf: rename pf_state to pf_kstate
Branches
Unknown
Tags
Unknown