diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-07-23 17:45:58 -0700 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-07-24 01:14:41 +0000 |
commit | 5ca33c6ac30596fc1403a092f46ea48c406734e4 (patch) | |
tree | 28461539be539191d4fac9f2037ebb4dff9ceedc /fs/cifs/cifssmb.c | |
parent | 8efdbde647f542ce0d303273df7ad4157caa03d0 (diff) | |
download | linux-5ca33c6ac30596fc1403a092f46ea48c406734e4.tar.gz linux-5ca33c6ac30596fc1403a092f46ea48c406734e4.tar.bz2 linux-5ca33c6ac30596fc1403a092f46ea48c406734e4.zip |
cifs: assorted endian annotations
fs/cifs/cifssmb.c:3917:13: warning: incorrect type in assignment (different base types)
fs/cifs/cifssmb.c:3917:13: expected bool [unsigned] [usertype] is_unicode
fs/cifs/cifssmb.c:3917:13: got restricted __le16
The comment explains why __force is used here.
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
fs/cifs/connect.c:458:16: warning: cast to restricted __be32
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 4511b708f0f3..7e175e1399d1 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -3914,7 +3914,10 @@ parse_DFS_referrals(TRANSACTION2_GET_DFS_REFER_RSP *pSMBr, bool is_unicode; struct dfs_referral_level_3 *ref; - is_unicode = pSMBr->hdr.Flags2 & SMBFLG2_UNICODE; + if (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) + is_unicode = true; + else + is_unicode = false; *num_of_nodes = le16_to_cpu(pSMBr->NumberOfReferrals); if (*num_of_nodes < 1) { |