[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200911040539.113307-3-zhengbin13@huawei.com>
Date: Fri, 11 Sep 2020 12:05:36 +0800
From: Zheng Bin <zhengbin13@...wei.com>
To: <sfrench@...ba.org>, <linux-cifs@...r.kernel.org>,
<samba-technical@...ts.samba.org>, <linux-kernel@...r.kernel.org>
CC: <yi.zhang@...wei.com>, <zhengbin13@...wei.com>
Subject: [PATCH -next 2/5] cifs: fix comparison to bool warning in file.c
Fixes coccicheck warning:
fs/cifs/file.c:780:22-38: WARNING: Comparison to bool
Signed-off-by: Zheng Bin <zhengbin13@...wei.com>
---
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
Powered by blists - more mailing lists