Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp74398ybz; Wed, 15 Apr 2020 04:49:36 -0700 (PDT) X-Google-Smtp-Source: APiQypKYmkxYEv/Y6nOduYvfRv1xfBD/U94DpyaHTU5Ok5pEvcY2NE7btO40XTIwVerGT0WUJcYj X-Received: by 2002:a05:6402:207c:: with SMTP id bd28mr22139929edb.380.1586951376457; Wed, 15 Apr 2020 04:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586951376; cv=none; d=google.com; s=arc-20160816; b=Nrh7BeFAYosYda9g13xIHOysr9YygLOOlebYclLPM2GKYgjVIBEu3HSmjhUdzk/JM7 9Gy8goGWjhWmFxPO1bjNS5b5DKZrVo8P6N7xtgnAXGuW1E2Fm710MgChSrUpDR2LU229 LQOVy39rYynaTDc4vG8vMsFOpFWHRcR9vEht57OsTmEAOqcxaVRYzDsYT9Dvi1mtGKDX xF79W984PQGDr0bq915fCYy8/0/9n00cBFAsVPrhQ/jlm8awwpphiTFu44U4WDcwKoFU vKIZNCQ/0yL2gIk7zMyrEYls/v4z9UDVLRcYXicrudOrRoJVA9ObTyzuxQzYpunokBID myQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=UdqnNWJY/XWYv+l+Wbt/asPopZXSIwcu6FCSRKrlyvY=; b=CWqQH3Tf5ZnX9xaT/kpJQX/+1mtN8G086WZU6a8JmSJ+uN3AegrELKjffXf9n7LoHv sLoE4xF51ymIjygRLmQXqPmk+omb7s6r5eDsles4GHTShFLfzfUPGPtdpQH1qAsQuSIy DlBb2ajG1cjswS/hXmDBHs6DrVo3xBUJyUEfWaI36eFhuq4Hk+8fH0FNM4/rXDX9TXhf HCvNnv9HST22RGA0xF/FcG7mZ4cuTwKWNGuICuFAJ3gf6ANDtxb6Lewq+eoKT+zEKLle eyNlhpi8U3FfRp2pYtAP/vX9XnqDgtzBbT0YaPuqwG1yQEZijYZ0fK3HnWNlGz0ETs3O u4hQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id do15si12372425ejc.95.2020.04.15.04.49.13; Wed, 15 Apr 2020 04:49:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407068AbgDNINn (ORCPT + 99 others); Tue, 14 Apr 2020 04:13:43 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:2369 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2407062AbgDNINd (ORCPT ); Tue, 14 Apr 2020 04:13:33 -0400 Received: from DGGEMS412-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 28AE9C18D5CA8D2CD2A6; Tue, 14 Apr 2020 16:13:31 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS412-HUB.china.huawei.com (10.3.19.212) with Microsoft SMTP Server id 14.3.487.0; Tue, 14 Apr 2020 16:13:24 +0800 From: Zou Wei To: , , , , , CC: Zou Wei Subject: [PATCH -next] tomoyo: use true for bool variable Date: Tue, 14 Apr 2020 16:19:48 +0800 Message-ID: <1586852388-68249-1-git-send-email-zou_wei@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes coccicheck warning: security/tomoyo/common.c:1028:2-13: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot Signed-off-by: Zou Wei --- security/tomoyo/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/security/tomoyo/common.c b/security/tomoyo/common.c index 1b46738..c577525 100644 --- a/security/tomoyo/common.c +++ b/security/tomoyo/common.c @@ -1025,7 +1025,7 @@ static bool tomoyo_select_domain(struct tomoyo_io_buffer *head, if (domain) head->r.domain = &domain->list; else - head->r.eof = 1; + head->r.eof = true; tomoyo_io_printf(head, "# select %s\n", data); if (domain && domain->is_deleted) tomoyo_io_printf(head, "# This is a deleted domain.\n"); -- 2.6.2