Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1580704pxk; Thu, 10 Sep 2020 21:01:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwni7kRGLJEsiijuNmMsH6UU9Ik8mu0Hp8P3XNlpngoETzFxovQCF1SeUYrFfBANFrAxFIA X-Received: by 2002:a17:906:d182:: with SMTP id c2mr189060ejz.378.1599796910436; Thu, 10 Sep 2020 21:01:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599796910; cv=none; d=google.com; s=arc-20160816; b=tkCdbjIFiKP8lamMX9MKzMCFTC3GHDq6Kxga/x6m9oPHzl1DWZlfGZajCBHKGV/Wcc RSQqElW1gsBs0mINCk3nCxeDA1QAVglYKySMZFSg8jpzjH4VpFFp8duIRh1YYx2Mmfzn JjfZI8otU0W27emJgg7wlnWEyTYvEyz3ucp6/rOKWdDfHqJ+OxK9DKsDHr85SoQZamuT TYMMMMpY05AZtUqXN6HXm5xy83l/sPQCtfssHx5pnNQbYdqVB27Im4qUxa8xhvTaMzQs U7zA1AD5pyYpMOYqPURp47keiHwikfZSQrFPTk28B4GATcmqajdJ2+/nXunZYyikEK6z ML+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=EAv56lvzquWmAxPUFWsy4ojhCbfl8HgsllkcpCkzvlY=; b=BFVDn3xIN1srMMWZggeiVmL3c5oq37LQyCIqhgLtIeXt+3IjQsLgjKnBFohuQv81Km jlsPcDedGVvI/a3ecufCfrp9LbG3DvMnjWILpVIBWp1FwuKYGymTmZaBZDFPuFM/sZzB N60bOyqHpi48YVq5VbTAkcLl6ywigmCoe7h8VAYTZ05zPEbGY1vSbsW0DD+eGyHxtigo 8HnFzMxxZ+JPvW0123X3n1hcSKxn+UjXqMyM49afcNXSgWfhLvl5Fv/uPGnZOwWYYDPY 8fz+vhtShseNOuWAEelQN2fMvpVxsj01R0UGtOj1McprJiBa5WtyBQQPEQw38fwooI9U 17TQ== ARC-Authentication-Results: i=1; mx.google.com; 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 i24si447300edr.73.2020.09.10.21.01.28; Thu, 10 Sep 2020 21:01:50 -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; 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 S1725828AbgIKD7U (ORCPT + 99 others); Thu, 10 Sep 2020 23:59:20 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59536 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725786AbgIKD66 (ORCPT ); Thu, 10 Sep 2020 23:58:58 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 6593F7046D96FD5A979E; Fri, 11 Sep 2020 11:58:54 +0800 (CST) Received: from huawei.com (10.90.53.225) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.487.0; Fri, 11 Sep 2020 11:58:44 +0800 From: Zheng Bin To: , , , CC: , Subject: [PATCH -next 1/5] cifs: fix comparison to bool warning in cifsacl.c Date: Fri, 11 Sep 2020 12:05:35 +0800 Message-ID: <20200911040539.113307-2-zhengbin13@huawei.com> X-Mailer: git-send-email 2.26.0.106.g9fadedd In-Reply-To: <20200911040539.113307-1-zhengbin13@huawei.com> References: <20200911040539.113307-1-zhengbin13@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.90.53.225] 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: fs/cifs/cifsacl.c:371:6-49: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- fs/cifs/cifsacl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index fcff14ef1c70..9447ff1a5b6a 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c @@ -368,7 +368,7 @@ sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid, else is_group = false; - if (is_well_known_sid(psid, &unix_id, is_group) == false) + if (!is_well_known_sid(psid, &unix_id, is_group)) goto try_upcall_to_get_id; if (is_group) { -- 2.26.0.106.g9fadedd