From nobody Sat Sep 03 01:29:21 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4MKHJ20Pyfz4bw5h; Sat, 3 Sep 2022 01:29:22 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4MKHJ16vcFz3MxH; Sat, 3 Sep 2022 01:29:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662168562; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IYjKBhS9a6vvENVY/j/obBShoYR7B6VqPFDbBjMgT/o=; b=ZgpDa3lrS6+l8yRS5PWvg7WFTTBWNYJ1W3jdR3HiqgX+pyha2SkvrcDIENSjjOgY77Rolb oWevKV3rxrdH4Dw0iE817icz312zzU5P9AtU9RdJcbodm/BOS6+P7tDIT+E8uAV/WQGJ/a o5mTtPFpEHdRLHQjhUtyIzD+ElGR5BJi6pJ3ARtpvuUIsfFiE+1Doh9hvlcytHDV4XKSdG esurKsESXlijoYTu9F80KWp6N8b7xrZyr8ygmYBWC19y7E1cAFFmDXBXFcFtKEGcB3PQ4x rUIsjYsUX23Us2nZ3iDf2DwuwtG9KksIsTQb/BwNxAIIGahlHPxoOM+3tmgGRw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4MKHJ160RGz10RD; Sat, 3 Sep 2022 01:29:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2831TL2N002595; Sat, 3 Sep 2022 01:29:21 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2831TLaq002594; Sat, 3 Sep 2022 01:29:21 GMT (envelope-from git) Date: Sat, 3 Sep 2022 01:29:21 GMT Message-Id: <202209030129.2831TLaq002594@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d8bd46134c33 - stable/13 - kern_sig.c: style List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d8bd46134c335b431af90f7a6b5724e324956256 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1662168562; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=IYjKBhS9a6vvENVY/j/obBShoYR7B6VqPFDbBjMgT/o=; b=FtcyIksu+QcIBAPV0H89b59U0Mk5oZWgTWFVbajf2Oz1hTmqqmJ/BiIVKBXojaryMkBfAz sRQS5gVN6B+cszn0xkGNJ/gr0RUFIN622JI/Fi6n+taAyY86t0T44ZhHv0VWv0JG4AfqHM tBdCEeZv7HAyUd/XtI0NEYiOUbQegzyFZw7cD6WM/kKuJeEUWnkf2gJ0NJAWJY+85t8LIQ nfPgh2krhzys6q6K8dvaycp8jNozWzU0d2seKKSoXSMlMqo0u7ZBdnCpa+wojRZ1UdiWj+ gNF03e83jv4ROhn+8ZInmpruDKL2S+zeQM7k1E0JokFHGqbIZ4mnvwvnWsgaLw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1662168562; a=rsa-sha256; cv=none; b=YNqxNfpNn1KOnKPdXum6+n4aLy6mje6GIXIFz4h925z5P38GJT1nxpmovMaPgO6g6lPdln GXZmkMROmMU1wJjdcVJgA9HdIPPqb6eRBwSTfL3REvUZ1flAESjsJ6kx39/IJmAudY4L06 hrvTyHGMOd+YR95KLOMm+TZrmPJp3eFpPreW0QV1bkg9NSI0cwL7kb6ToUCUgeICmV/8A9 N3aU5LhFv0AlVvbnS/Kqqrak3uBMtNEOe1+H4LSY+YzAKpv5B8JK9VFPwcsWCWx/tp9HBR HUuIBlPjZIp3FuvbZMJxQT3e7HbreeWsolBhFsBwF6gUwU2EQlti4Nw8yrdJlw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d8bd46134c335b431af90f7a6b5724e324956256 commit d8bd46134c335b431af90f7a6b5724e324956256 Author: Konstantin Belousov AuthorDate: 2022-08-17 17:01:13 +0000 Commit: Konstantin Belousov 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); }