diff options
author | Steve French <stfrench@microsoft.com> | 2019-10-01 21:25:46 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-10-06 22:04:29 -0500 |
commit | 52870d5048919004b6629d1a2f2b0a99c23b9960 (patch) | |
tree | acd3b853985e8ac9ba33ed08d3cf586e6e2413ec /fs/cifs/connect.c | |
parent | da0c9ea146cbe92b832f1b0f694840ea8eb33cce (diff) | |
download | lwn-52870d5048919004b6629d1a2f2b0a99c23b9960.tar.gz lwn-52870d5048919004b6629d1a2f2b0a99c23b9960.zip |
smb3: cleanup some recent endian errors spotted by updated sparse
Now that sparse has been fixed, it spotted a couple recent minor
endian errors (and removed one additional sparse warning).
Thanks to Luc Van Oostenryck for his help fixing sparse.
Signed-off-by: Steve French <stfrench@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.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 2850c3ce4391..b724227b853c 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -4264,7 +4264,7 @@ static int mount_get_conns(struct smb_vol *vol, struct cifs_sb_info *cifs_sb, server->ops->qfs_tcon(*xid, tcon); if (cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RO_CACHE) { if (tcon->fsDevInfo.DeviceCharacteristics & - FILE_READ_ONLY_DEVICE) + cpu_to_le32(FILE_READ_ONLY_DEVICE)) cifs_dbg(VFS, "mounted to read only share\n"); else if ((cifs_sb->mnt_cifs_flags & CIFS_MOUNT_RW_CACHE) == 0) |