aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2023-02-13 21:26:36 +0000
committerMark Johnston <markj@FreeBSD.org>2023-02-13 21:35:47 +0000
commitc7ea65ec69dde90253bd1872fecaeb7c07337f97 (patch)
tree5830d4616692e519294de11f4a3ce425b436e492
parent775da7f8a9248d148ffd50635cf043c015146225 (diff)
downloadsrc-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.c4
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);