diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-12-25 04:30:20 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2020-01-27 02:24:16 +0100 |
commit | 720aec01262d49dbce17d862d8cdbfd3cfef4261 (patch) | |
tree | 961288d7bfd7cfbd37ff892b14f6bb247850a751 /fs/cifs | |
parent | Linux 5.5 (diff) | |
download | linux-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.c | 2 |
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); |