Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Sep 2022 01:29:20 GMT
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: a7fff8e60f24 - stable/13 - ksiginfo_tryfree(): change return type to bool
Message-ID:  <202209030129.2831TKvP002568@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib:

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

commit a7fff8e60f24037028441da60073893a62e7e621
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-08-17 16:58:46 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-09-03 01:17:35 +0000

    ksiginfo_tryfree(): change return type to bool
    
    (cherry picked from commit cdb58f9d04cfb99d00e757ee769f8c2c3efcff89)
---
 sys/kern/kern_sig.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c
index 54d2ed857c07..9953cf6b8d79 100644
--- a/sys/kern/kern_sig.c
+++ b/sys/kern/kern_sig.c
@@ -303,14 +303,14 @@ ksiginfo_free(ksiginfo_t *ksi)
 	uma_zfree(ksiginfo_zone, ksi);
 }
 
-static __inline int
+static __inline bool
 ksiginfo_tryfree(ksiginfo_t *ksi)
 {
-	if (!(ksi->ksi_flags & KSI_EXT)) {
+	if ((ksi->ksi_flags & KSI_EXT) == 0) {
 		uma_zfree(ksiginfo_zone, ksi);
-		return (1);
+		return (true);
 	}
-	return (0);
+	return (false);
 }
 
 void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209030129.2831TKvP002568>