From nobody Sat Aug 20 17:34:57 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 4M95Nd6sglz4ZpjZ; Sat, 20 Aug 2022 17:34:57 +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 4M95Nd6Dftz3Xbn; Sat, 20 Aug 2022 17:34:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661016897; 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=0r/VWNQzYXrHmub5E4kGvbJ4t4H57LLypl7ZTj9CR0I=; b=HoxQzN30UjpCFgiL50nQNeHJ4Uy7IkqwzUzKK7ZcALIos3UPcPv/M9w7qm4opAeVeryN/Y 73rZZS53IckgJUcACv3QSz6S8d48FE8Ebooq5KrY6DeQXeEzdPtjv9u8gWeP4D6oBY2f3i +mgOUfcoRHyJANF3o69lEl6xEVCwHAwh8mrtOipFEP6O3TyVBCprrKOkdpp5+f5jc7QqJE MCIIFGQUgARM90qyCxg56K2E4Rqjj9VaEEETfzXkX9VQQRiDPFhxef5psegL9Kt9CjrJsi bvigLadhCS/9+DcOZIlYTtUpbrm5dIP0gzNEycu2HbrjYxhvzbI+60KsqW+DzQ== 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 4M95Nd5DHGzgWQ; Sat, 20 Aug 2022 17:34:57 +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 27KHYvkr093425; Sat, 20 Aug 2022 17:34:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27KHYvSM093424; Sat, 20 Aug 2022 17:34:57 GMT (envelope-from git) Date: Sat, 20 Aug 2022 17:34:57 GMT Message-Id: <202208201734.27KHYvSM093424@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: cdb58f9d04cf - main - ksiginfo_tryfree(): change return type to bool 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: cdb58f9d04cfb99d00e757ee769f8c2c3efcff89 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661016897; 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=0r/VWNQzYXrHmub5E4kGvbJ4t4H57LLypl7ZTj9CR0I=; b=SDY0yfT4Ci2eZLXsshbrRcUgT1SS4z6euUAQ9UZZWMX/6MI4SkonYd4ko7UNazN5obRuDo bToea87YtLBE9wCo9HzUKn8+neI2aiZN9rpl+A62MT9ZBNxJ0Pxm/1TPltrDgMxLBCpmHe zasoCWe3pYSbVNXnhCGczodr7nGE2TFyFjez9oBoJ+SAtsiUCwTn7b4yb2XrxU2XiXZOj9 mdp41yPiIWHdDdz4veMytsPVdty0pN0UfSziB8VQ3rB7n/AbChuwgaQpGEwEGtUmm3nrqS eozEzVje0pB4koiom3/pu6sO46n8JAKcUYBhqBVw1oZR1XKZ4xPYf0dWMM4jYA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661016897; a=rsa-sha256; cv=none; b=QjV4hnXe9s+Z30GKv9aje0BKoEn4dxHOLAGyN46gWWjL7T9e/xWKqZ9YIFzdBl7ONF/3P/ BXZiaPaan7ZbgG86QVudBtQd7xebhoTUALFfvm3PT6AFXHGMH0KtZ6TsO2RzzAghV3SGq/ Ock0l8ISB6uDr6UWlU9z18CH1YGFYx2wrtPaKX4/HgxDoPWyaYOEdkPF+dPCU+m8y1nkMT NACUGIQKb8WGij74HRyFNRhqG+R1IFVJsa7PAnBeinEz6Meqik5oSoNHufuwzJ6mtV6Mit K+cWsYWifKZsFHVnzhGMRy5Sn6u+i6WvfeL2p6JimLcnXW4KFWrWYz4SxMM0TQ== 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=cdb58f9d04cfb99d00e757ee769f8c2c3efcff89 commit cdb58f9d04cfb99d00e757ee769f8c2c3efcff89 Author: Konstantin Belousov AuthorDate: 2022-08-17 16:58:46 +0000 Commit: Konstantin Belousov CommitDate: 2022-08-20 17:33:18 +0000 ksiginfo_tryfree(): change return type to bool The function result is already used as bool. Reviewed by: markj Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D36207 --- 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 27aff0998c90..ea3c36a57f32 100644 --- a/sys/kern/kern_sig.c +++ b/sys/kern/kern_sig.c @@ -380,14 +380,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