git: d8bd46134c33 - stable/13 - kern_sig.c: style
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 03 Sep 2022 01:29:21 UTC
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d8bd46134c335b431af90f7a6b5724e324956256 commit d8bd46134c335b431af90f7a6b5724e324956256 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-08-17 17:01:13 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-09-03 01:17:35 +0000 kern_sig.c: style (cherry picked from commit 0a4f2ac3b78ae9adf92f47da786e1b84a03d63d9) --- sys/kern/kern_sig.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_sig.c b/sys/kern/kern_sig.c index 9953cf6b8d79..8f35747b4687 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2207,7 +2207,7 @@ tdsendsignal(struct proc *p, struct thread *td, int sig, ksiginfo_t *ksi) * IEEE Std 1003.1-2001: return success when killing a zombie. */ if (p->p_state == PRS_ZOMBIE) { - if (ksi && (ksi->ksi_flags & KSI_INS)) + if (ksi != NULL && (ksi->ksi_flags & KSI_INS) != 0) ksiginfo_tryfree(ksi); return (ret); } @@ -2237,7 +2237,7 @@ tdsendsignal(struct proc *p, struct thread *td, int sig, ksiginfo_t *ksi) SDT_PROBE3(proc, , , signal__discard, td, p, sig); mtx_unlock(&ps->ps_mtx); - if (ksi && (ksi->ksi_flags & KSI_INS)) + if (ksi != NULL && (ksi->ksi_flags & KSI_INS) != 0) ksiginfo_tryfree(ksi); return (ret); } else { @@ -2270,7 +2270,7 @@ tdsendsignal(struct proc *p, struct thread *td, int sig, ksiginfo_t *ksi) if ((prop & SIGPROP_TTYSTOP) != 0 && (p->p_pgrp->pg_flags & PGRP_ORPHANED) != 0 && action == SIG_DFL) { - if (ksi && (ksi->ksi_flags & KSI_INS)) + if (ksi != NULL && (ksi->ksi_flags & KSI_INS) != 0) ksiginfo_tryfree(ksi); return (ret); }