diff options
author | Mark Johnston <markj@FreeBSD.org> | 2023-02-13 21:26:36 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-02-13 21:35:47 +0000 |
commit | c7ea65ec69dde90253bd1872fecaeb7c07337f97 (patch) | |
tree | 5830d4616692e519294de11f4a3ce425b436e492 | |
parent | 775da7f8a9248d148ffd50635cf043c015146225 (diff) | |
download | src-c7ea65ec69dde90253bd1872fecaeb7c07337f97.tar.gz src-c7ea65ec69dde90253bd1872fecaeb7c07337f97.zip |
inpcb: refcount_release() returns a bool
No functional change intended.
MFC after: 1 week
Sponsored by: Klara, Inc.
-rw-r--r-- | sys/netinet/in_pcb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c index 3369f16e15c7..ad889f29de55 100644 --- a/sys/netinet/in_pcb.c +++ b/sys/netinet/in_pcb.c @@ -1728,7 +1728,7 @@ in_pcbrele_rlocked(struct inpcb *inp) INP_RLOCK_ASSERT(inp); - if (refcount_release(&inp->inp_refcount) == 0) + if (!refcount_release(&inp->inp_refcount)) return (false); MPASS(inp->inp_flags & INP_FREED); @@ -1745,7 +1745,7 @@ in_pcbrele_wlocked(struct inpcb *inp) INP_WLOCK_ASSERT(inp); - if (refcount_release(&inp->inp_refcount) == 0) + if (!refcount_release(&inp->inp_refcount)) return (false); MPASS(inp->inp_flags & INP_FREED); |