]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf: remove pointless NULL check
authorKristof Provost <kp@FreeBSD.org>
Thu, 21 Apr 2022 12:33:48 +0000 (14:33 +0200)
committerKristof Provost <kp@FreeBSD.org>
Thu, 21 Apr 2022 15:59:45 +0000 (17:59 +0200)
commited6287c14168de409c5f333bda59896c8109eb70
treee2eff6eba6f979e2d03624f8d721d0f158d4b4b4
parent5727eceabc93e218f0dd369a66d06d619e7fa080
pf: remove pointless NULL check

pfi_kkif_attach() always returns non-NULL, and we dereference the
pointer before we check it, so that's pointless.

Reported by: Coverity (CID 1007345)
MFC after: 1 week
Sponsored by: Rubicon Communications, LLC ("Netgate")
sys/netpfil/pf/pf_if.c