git: a7fff8e60f24 - stable/13 - ksiginfo_tryfree(): change return type to bool
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Sep 2022 01:29:20 UTC
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