Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1579816pxk; Thu, 10 Sep 2020 21:00:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+Rei30zZg4bvZWs61ZgyGRUkEq/88FqjofSbwxOJH7SjykLmAju9hBPQgPFWHbguDiJ9t X-Received: by 2002:aa7:c053:: with SMTP id k19mr22428edo.326.1599796801384; Thu, 10 Sep 2020 21:00:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599796801; cv=none; d=google.com; s=arc-20160816; b=rNHbPnvZIob0yIHfqU1ZvEjUklrZ0g+MIoZapgEZRzCCGcl8jNDdRdvMo3pyrawNlb 9oqCvnXFJDn3jGEA4RevhRh2bOfr6hixSJ50LPfkP+S9/AGTVEPCtWRitNHDpJkMm0cl 5iCPwvcapBXuKJXY5ndUwxriLlYS4J+d/PgTWI2MB3JFb7SFq44mhCpJ+SuDWH1CjqP9 tb2YV5QS2CXBtqvLSWzdEhWvGi+zY88RW+Kl3Q35Vke/GPe7Rik5FfYDE3uA+OISDi9+ yodZ2eW6RmpGi0/qohHZobiro+0P26ZAnaUbxqXlg+0UKB00ecpawQsNjgmgbKt0Qk4r SU7A== 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=8i0fdrHkzv/TBCV2y1N36V84wg6TLoQ7qTFAX7AwiE0=; b=Sx2AHs9aQ4ZI7nYtPAajLjEZ22Cn6cMyhZK+31ck6UKiTC9YBKtuk6ZqdvOgYwlqi6 uUlxESKmh+OvruvW81vZYgL1Xrdk+NrzDlxGxB5ezhAd1s6dtCm+r8o1FSCxXZaH8P26 98TOSdn64ZfA+x5w0QOHFakwH9ZPzaKWku6JrB8SnnPbdYLWWoHvlVhYJpjWm4yc7BgU Sraao4peeVCYbK9B9J6edkazeJ8SWCuTd9i4FB76DWW8tkYDk3Y5cHRohrmxSgD527SF 1eLN9VeEw28GVinouZxZDXTFBekvVY4WT2vA7mTZCOzJnv/JTlgEqdgzn8XvhaLn+olK ZHZA== 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 q5si470794ejj.123.2020.09.10.20.59.39; Thu, 10 Sep 2020 21:00:01 -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 S1725798AbgIKD7A (ORCPT + 99 others); Thu, 10 Sep 2020 23:59:00 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:59430 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725780AbgIKD64 (ORCPT ); Thu, 10 Sep 2020 23:58:56 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 53D8CB045BE2E1C82452; 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:45 +0800 From: Zheng Bin To: , , , CC: , Subject: [PATCH -next 2/5] cifs: fix comparison to bool warning in file.c Date: Fri, 11 Sep 2020 12:05:36 +0800 Message-ID: <20200911040539.113307-3-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/file.c:780:22-38: WARNING: Comparison to bool Signed-off-by: Zheng Bin --- fs/cifs/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/file.c b/fs/cifs/file.c index be46fab4c96d..bad749f606d5 100644 --- a/fs/cifs/file.c +++ b/fs/cifs/file.c @@ -777,7 +777,7 @@ cifs_reopen_file(struct cifsFileInfo *cfile, bool can_flush) * not dirty locally we could do this. */ rc = server->ops->open(xid, &oparms, &oplock, NULL); - if (rc == -ENOENT && oparms.reconnect == false) { + if (rc == -ENOENT && !oparms.reconnect) { /* durable handle timeout is expired - open the file again */ rc = server->ops->open(xid, &oparms, &oplock, NULL); /* indicate that we need to relock the file */ -- 2.26.0.106.g9fadedd