git: 8fd0fa88b5a6 - releng/13.3 - umtx: shm: 'ushm_refcnt > 0' => 'ushm_refcnt != 0'

From: Ed Maste <emaste_at_FreeBSD.org>
Date: Wed, 04 Sep 2024 20:29:50 UTC
The branch releng/13.3 has been updated by emaste:

URL: https://cgit.FreeBSD.org/src/commit/?id=8fd0fa88b5a63464165f813df83d371f89853d1b

commit 8fd0fa88b5a63464165f813df83d371f89853d1b
Author:     Olivier Certner <olce@FreeBSD.org>
AuthorDate: 2024-09-04 14:38:12 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2024-09-04 20:29:29 +0000

    umtx: shm: 'ushm_refcnt > 0' => 'ushm_refcnt != 0'
    
    'ushm_refcnt' is unsigned.  Don't leave the impression it isn't.
    
    No functional change (intended).
    
    Reviewed by:    kib
    Approved by:    emaste (mentor)
    Sponsored by:   The FreeBSD Foundation
    Differential Revision:  https://reviews.freebsd.org/D46126
    
    (cherry picked from commit c75a18905e308f69b01f19c3d7d613883a008e79)
    (cherry picked from commit 4938f554469bc81783998143968ec3eba2a43def)
    (cherry picked from commit a73a70472c47877d57d090ef77ae503fe75e9f41)
    
    Approved by:    so
---
 sys/kern/kern_umtx.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/kern/kern_umtx.c b/sys/kern/kern_umtx.c
index 47fb595f433f..29931499fcbe 100644
--- a/sys/kern/kern_umtx.c
+++ b/sys/kern/kern_umtx.c
@@ -4356,7 +4356,7 @@ umtx_shm_find_reg_locked(const struct umtx_key *key,
 		    reg->ushm_key.info.shared.offset ==
 		    key->info.shared.offset) {
 			KASSERT(reg->ushm_key.type == TYPE_SHM, ("TYPE_USHM"));
-			KASSERT(reg->ushm_refcnt > 0,
+			KASSERT(reg->ushm_refcnt != 0,
 			    ("reg %p refcnt 0 onlist", reg));
 			KASSERT((reg->ushm_flags & USHMF_LINKED) != 0,
 			    ("reg %p not linked", reg));
@@ -4404,7 +4404,7 @@ static bool
 umtx_shm_unref_reg_locked(struct umtx_shm_reg *reg, bool linked_ref)
 {
 	mtx_assert(&umtx_shm_lock, MA_OWNED);
-	KASSERT(reg->ushm_refcnt > 0, ("ushm_reg %p refcnt 0", reg));
+	KASSERT(reg->ushm_refcnt != 0, ("ushm_reg %p refcnt 0", reg));
 
 	if (linked_ref) {
 		if ((reg->ushm_flags & USHMF_LINKED) == 0)