HomeFreeBSD

pf: ifp can never be NULL in pfi_ifaddr_event()

Description

pf: ifp can never be NULL in pfi_ifaddr_event()

There's no point in the NULL check for ifp, because we'll already have
dereferenced it by then. Moreover, the event will always have a valid ifp.

Replace the late check with an early assertion.

CID: 1357338

Details

Provenance
kpAuthored on
Parents
rS339673: Fix stand/ build after r339671.
Branches
Unknown
Tags
Unknown