inpcb: refcount_release() returns a bool

No functional change intended.

MFC after:	1 week
Sponsored by:	Klara, Inc.
This commit is contained in:
Mark Johnston 2023-02-13 16:26:36 -05:00
parent 775da7f8a9
commit c7ea65ec69

View file

@ -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);