summaryrefslogtreecommitdiffstats
path: root/fs/cifs
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-12-25 04:30:20 +0100
committerSteve French <stfrench@microsoft.com>2020-01-27 02:24:16 +0100
commit720aec01262d49dbce17d862d8cdbfd3cfef4261 (patch)
tree961288d7bfd7cfbd37ff892b14f6bb247850a751 /fs/cifs
parentLinux 5.5 (diff)
downloadlinux-720aec01262d49dbce17d862d8cdbfd3cfef4261.tar.xz
linux-720aec01262d49dbce17d862d8cdbfd3cfef4261.zip
fs/cifs/smb2ops.c: use true,false for bool variable
Fixes coccicheck warning: fs/cifs/smb2ops.c:807:2-36: WARNING: Assignment of 0/1 to bool variable Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: zhengbin <zhengbin13@huawei.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/smb2ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c
index 6250370c1170..2c500226315d 100644
--- a/fs/cifs/smb2ops.c
+++ b/fs/cifs/smb2ops.c
@@ -804,7 +804,7 @@ int open_shroot(unsigned int xid, struct cifs_tcon *tcon, struct cifs_fid *pfid)
sizeof(struct smb2_file_all_info),
&rsp_iov[1], sizeof(struct smb2_file_all_info),
(char *)&tcon->crfid.file_all_info))
- tcon->crfid.file_all_info_is_valid = 1;
+ tcon->crfid.file_all_info_is_valid = true;
oshr_exit:
mutex_unlock(&tcon->crfid.fid_mutex);