bpf: Prefer the boolean form when calling bpf_peers_present()

No functional change intended.

Reviewed by:	markj, kp, #network
MFC with:	8f31b879ec
Differential Revision:	https://reviews.freebsd.org/D45509
This commit is contained in:
Zhenlei Huang 2024-06-07 23:06:07 +08:00
parent 2b887687ed
commit 89204d9dcb

View File

@ -2880,9 +2880,7 @@ bpfdetach(struct ifnet *ifp)
bool
bpf_peers_present_if(struct ifnet *ifp)
{
struct bpf_if *bp = ifp->if_bpf;
return (bpf_peers_present(bp) > 0);
return (bpf_peers_present(ifp->if_bpf));
}
/*