diff options
author | Jiapeng Zhong <abaci-bugfix@linux.alibaba.com> | 2021-01-14 17:09:20 +0800 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-01-17 19:22:18 -0600 |
commit | 2be449fcf38ff7e44cf76a2bba1376e923637eb1 (patch) | |
tree | abae5ec53d3144c2f85a46fc47cf9336c8c8e19d /fs/cifs/connect.c | |
parent | 19c329f6808995b142b3966301f217c831e7cf31 (diff) |
fs/cifs: Assign boolean values to a bool variable
Fix the following coccicheck warnings:
./fs/cifs/connect.c:3386:2-21: WARNING: Assignment of 0/1 to
bool variable.
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Zhong <abaci-bugfix@linux.alibaba.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 5d39129406ea..7c3325c0fadc 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -2195,7 +2195,7 @@ cifs_get_tcon(struct cifs_ses *ses, struct smb3_fs_context *ctx) if (ses->server->capabilities & SMB2_GLOBAL_CAP_DIRECTORY_LEASING) tcon->nohandlecache = ctx->nohandlecache; else - tcon->nohandlecache = 1; + tcon->nohandlecache = true; tcon->nodelete = ctx->nodelete; tcon->local_lease = ctx->local_lease; INIT_LIST_HEAD(&tcon->pending_opens); |