Skip to content

Commit 2be449f

Browse files
Jiapeng Zhongsmfrench
authored andcommitted
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>
1 parent 19c329f commit 2be449f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2195,7 +2195,7 @@ cifs_get_tcon(struct cifs_ses *ses, struct smb3_fs_context *ctx)
21952195
if (ses->server->capabilities & SMB2_GLOBAL_CAP_DIRECTORY_LEASING)
21962196
tcon->nohandlecache = ctx->nohandlecache;
21972197
else
2198-
tcon->nohandlecache = 1;
2198+
tcon->nohandlecache = true;
21992199
tcon->nodelete = ctx->nodelete;
22002200
tcon->local_lease = ctx->local_lease;
22012201
INIT_LIST_HEAD(&tcon->pending_opens);

0 commit comments

Comments
 (0)