fs/cifs: Assign boolean values to a bool variable
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Jiapeng Zhong <[email protected]>
--- fs/cifs/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/cifs/connect.c +1 -1
@@ -2195,7 +2195,7 @@ static int match_tcon(struct cifs_tcon *tcon, 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);
Signature · 1 line
1.8.3.1
Steve French
Appliedmerged into cifs-2.6.git for-next
Quoted 28 lines · Jiapeng Zhong
Fix the following coccicheck warnings:
./fs/cifs/connect.c:3386:2-21: WARNING: Assignment of 0/1 to bool variable.
Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Zhong <[email protected]>--- fs/cifs/connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/cifs/connect.c +1
-2@@ -2195,7 +2195,7 @@ static int match_tcon(struct cifs_tcon *tcon, 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); --1.8.3.1
Signature · 3 lines
Thanks, Steve