mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-25 10:01:02 +01:00
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:
parent
2b887687ed
commit
89204d9dcb
@ -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));
|
||||
}
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user