From nobody Sat Aug 20 17:34:58 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 4M95Ng1BqSz4Zpm9; Sat, 20 Aug 2022 17:34:59 +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 4M95Ng0Mw2z3Xfm; Sat, 20 Aug 2022 17:34:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661016899; 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=ycHQkjBZ3J7xlzJP3hCCjz2lE1qorNSCIBZSZae3sXA=; b=MMfpio0EoTtqgjJPX4CdZFFSHZxY8JbUA1ouwhcqYRXgqPmduhCVMmd16jwnDURAc08rxL DcLCtXPmvzfRSKrJ8Q21Owf5PVgsCCJkyqdF2dfBt29kUaghvG+UzCNYE172gk27a435/E 889o+IQJ2pR3cnuAlciBKNK7HEWWu3JWoiq5z40Bkhq8CQjdoQ+yvld+HxRlyKzvuZbA8e oMOb9W4MdDl1jirz4FxDES7MXSltLJesK/rxewHGpNe/2j3Q062ou6XzXX4WIZ4rhXGpoe dBJQlz1r/0O3ELm+i2CtjX6wqJ6HURKDBVVnbPel6dc8/6LLAtv5rLtlQuPJBg== 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 4M95Nf6VSYzgcP; Sat, 20 Aug 2022 17:34:58 +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 27KHYwgn093481; Sat, 20 Aug 2022 17:34:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27KHYwYU093480; Sat, 20 Aug 2022 17:34:58 GMT (envelope-from git) Date: Sat, 20 Aug 2022 17:34:58 GMT Message-Id: <202208201734.27KHYwYU093480@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: 0a4f2ac3b78a - main - 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/main X-Git-Reftype: branch X-Git-Commit: 0a4f2ac3b78ae9adf92f47da786e1b84a03d63d9 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661016899; 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=ycHQkjBZ3J7xlzJP3hCCjz2lE1qorNSCIBZSZae3sXA=; b=aod0n/v2CxDM7t6WtmkuXOW3CL76suKLAjQbE3SEqkvOOju9JM7kMEbt03oAtDV2JRn6Di M/BuixoEZRYrmpV0iOPnBDUWJpwp7tZ86ozQciFZH724ESOExP8E5fzOHREDF5BZvd47Nt b1/YRnsoTcc7sxtgTw9WKJV92tKiA5aaGlwYlXCG7W/TTWALcw5Co9APecozy7q78OFq8B +l3CyeDqmN+xMBaCZy9sTjGhUAYUcO74Agh0o0miS3o8EYmEGPxHR+csOpEBaEr2qU61je fsCanfEV9T5nGpizsxDnFSKYhhd+pdU4RftFrzhSRkev2RqjPSTuJRD26XO/fQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661016899; a=rsa-sha256; cv=none; b=yr4P+7kK0mjsxcKc1S+h0ug912jLcdcceGPqewr/TLw1I7qFYlPqjsjvX/5jqcK0CpE0o1 W4bgbsE5pmZ4Xg32MgKmJxJCVUdQOuZpqErHjPrgwbzn+DOueVYE2/nrCchGShjty5hIvy LrSgumaAnEVf4N743aZaeL79ePu7H6bDkz/BnTFvlNRIBMeUKuAMD7jCdSi7I0cYVkEomF Fu9rZ5QRHIiPTIHLVRb8kEz87q+myFrY+Gd1eXO3lxoxu4EK0nPx/544nlZtYMpFPYNnNx HaoTfeMGzuklbGQyQV6A8HhZCr5+BZaZXyuklNX77SHl7vWJACWlbrAvRcOtTw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=0a4f2ac3b78ae9adf92f47da786e1b84a03d63d9 commit 0a4f2ac3b78ae9adf92f47da786e1b84a03d63d9 Author: Konstantin Belousov AuthorDate: 2022-08-17 17:01:13 +0000 Commit: Konstantin Belousov CommitDate: 2022-08-20 17:33:18 +0000 kern_sig.c: style Reviewed by: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D36207 --- 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 ea3c36a57f32..6fd3eca0a14e 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -2264,7 +2264,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); } @@ -2294,7 +2294,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 { @@ -2327,7 +2327,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); }