Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp603109ybz; Wed, 15 Apr 2020 14:58:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJouOzW48AgyXwpgXl2o3hWo7Ucsa8OH1IyVvNbLYgGYzEGukcslSAITSd86BLlDsIs0dXs X-Received: by 2002:a17:906:c9c1:: with SMTP id hk1mr7155416ejb.146.1586987919196; Wed, 15 Apr 2020 14:58:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586987919; cv=none; d=google.com; s=arc-20160816; b=xdjnpGJsy84JcgCFoGFpLm6b+/PXLzHvOkYAzKewW1LlMuCKBbjVu06ttBlVHlchdb TK8Kv85Luc41Pek/S979HijX/tKUrbKMS+AZr4v0Bzt293AM5Kj0149514NC2j8litZ3 HhU6//UPmmBcK/HOIf1SSXs+E/B1ABs5eCeo0lntfDtVOyDbeLQWHYayNnRODU3fWXdm vxiNHih4xhABVxJsgGazJcAUqA5/kiZQUqlGcADP+SPFBpRtX/iG4u1KRoSp870J3mSG kXG6oKb015G+spLH0+5By81Gz1BL9Jpzktn/EE7fkpAn9g0c0lEmdJqraCw/fScxGChF Ha4Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=2B6KSb9ULHZwvw0POXN8kn/+hN+oqa+Ekk3IkISWyS0=; b=FEahmqeXA+JWH9v+avtholJlgZmkvqsOajiivmjuOsguM74advUSiqs758ftZc1olh jayxOIFS/OOd+DBJumCEZhmnoPRsWeGHDCpsvnSqjTWhzIwdODKuaRWg91wXp5vuTgXz ijy+/MG8OjM9TAPMUjbBCv7D8hXoJjOqhZEFuUQRpewFrHKaiXvRdYQAedrqylAt6GGv GCX/jTAe4xU6i0GI2HjRO4LKIMT430DAR7OcR9rFzJg52dcknDRkhRuvpRoc0t8hSqwj QPta7A5uioFGaJ7toaaqg9XYiM8X3dYVTkaKXcC41JR/0W+lHNyju3aizqyo3fHnJ5j6 Yw+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=1hFd2wnB; spf=pass (google.com: 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 x25si2144624eds.136.2020.04.15.14.58.16; Wed, 15 Apr 2020 14:58:39 -0700 (PDT) Received-SPF: pass (google.com: 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; dkim=pass header.i=@paul-moore-com.20150623.gappssmtp.com header.s=20150623 header.b=1hFd2wnB; spf=pass (google.com: 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 S2407836AbgDNWFe (ORCPT + 99 others); Tue, 14 Apr 2020 18:05:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55622 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1730942AbgDNWFc (ORCPT ); Tue, 14 Apr 2020 18:05:32 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18D42C061A0E for ; Tue, 14 Apr 2020 15:05:31 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id p6so1724681edu.10 for ; Tue, 14 Apr 2020 15:05:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paul-moore-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=2B6KSb9ULHZwvw0POXN8kn/+hN+oqa+Ekk3IkISWyS0=; b=1hFd2wnBwOrjzXMUj3Rksg6DM69zi2fiU1AERhoYGg01pDzQXamgVmvH1bL8qGlXWc uugggFPpVGiQuTgy3rkRpiO6GR7g22s51OY4fhkTXd/ote2eovm7pxmYrgroyXJIcVx0 oSn5N5oKKcjbPYpwPPugf7hIv2QRuA0BKu9k2CTedMdh0tW3kgx8Ko+yyV8iW/VgexLu sflZns3Xp0yZGXxbmy7CUZRNdyn1rJSfDQgH8RbH8QqGdHKQdGblA/vq/iqFxydGaZBx GQ60zpSyCeCIeSW1DTSh8Sk+UhCU4c3kByJ9YBFy30TfHDnTiZx0/9Mk3WLLuA00Ul4u 7MTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=2B6KSb9ULHZwvw0POXN8kn/+hN+oqa+Ekk3IkISWyS0=; b=nl7+B16RHDVPCGpGdeVCOsPBNaMVQ594/sE+zFi/blEHX6tfSsxihykORjj4vcCqvW pQ1fGJYpYXvUhPy9D2mdkBnqmais8kOkUJMBrJAxD27Qp+QVh2rSROkohc6qQfUL+jl4 z+yDsjxE3LUiFX/D+qB0Kw3Txb9Gosdn4c14L4k8pQYaujoR6meJETsmF4evdjazerEf oDZcig9a9dS35Bsjuoy9LK9EkrbCFmIYaNVKQbWEsDHT/5y75NXRbOeZ7VCVFGAVMpOB 3e3JhLO3dX7ve2bFqnM1rtfQ3RbLgFQiVFQBH2Mh4XSIcAsKEGONhnnJ2uIxmQ4MoMNo AUfQ== X-Gm-Message-State: AGi0PuabWlQN3RNwvyEPPn8rjJu5FYwZ3gVsz5GdgSb5ohJPTVnEgCFw mz178XK2mrA4StJqcowHTP2tPr1VV3kzfBnyPjFu X-Received: by 2002:a17:906:f106:: with SMTP id gv6mr2254080ejb.271.1586901929541; Tue, 14 Apr 2020 15:05:29 -0700 (PDT) MIME-Version: 1.0 References: <1586852287-67588-1-git-send-email-zou_wei@huawei.com> In-Reply-To: <1586852287-67588-1-git-send-email-zou_wei@huawei.com> From: Paul Moore Date: Tue, 14 Apr 2020 18:05:18 -0400 Message-ID: Subject: Re: [PATCH -next] selinux: fix warning Comparison to bool To: Zou Wei Cc: Stephen Smalley , Eric Paris , selinux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 4:12 AM Zou Wei wrote: > > fix below warnings reported by coccicheck > > security/selinux/ss/mls.c:539:39-43: WARNING: Comparison to bool > security/selinux/ss/services.c:1815:46-50: WARNING: Comparison to bool > security/selinux/ss/services.c:1827:46-50: WARNING: Comparison to bool > > Reported-by: Hulk Robot > Signed-off-by: Zou Wei > --- > security/selinux/ss/mls.c | 2 +- > security/selinux/ss/services.c | 4 ++-- > 2 files changed, 3 insertions(+), 3 deletions(-) Merged into selinux/next, thanks. -- paul moore www.paul-moore.com