diff options
author | Steve French <smfrench@gmail.com> | 2017-03-02 16:42:48 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2017-03-03 00:11:54 -0500 |
commit | 284316dd42a2027afe37df34c5199eb4eabed8fd (patch) | |
tree | 5589fe063a8e790857a2f63b04979dad59e77950 /fs | |
parent | 9d49640a21bffd730a6ebf2a0032e022f7caf84a (diff) |
CIFS: Fix sparse warnings
Fix two minor sparse compile check warnings
Signed-off-by: Steve French <steve.french@primarydata.com>
Acked-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/cifs/cifs_unicode.h | 6 | ||||
-rw-r--r-- | fs/cifs/cifssmb.c | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/fs/cifs/cifs_unicode.h b/fs/cifs/cifs_unicode.h index 479bc0a941f3..3d7298cc0aeb 100644 --- a/fs/cifs/cifs_unicode.h +++ b/fs/cifs/cifs_unicode.h | |||
@@ -130,10 +130,10 @@ wchar_t cifs_toupper(wchar_t in); | |||
130 | * Returns: | 130 | * Returns: |
131 | * Address of the first string | 131 | * Address of the first string |
132 | */ | 132 | */ |
133 | static inline wchar_t * | 133 | static inline __le16 * |
134 | UniStrcat(wchar_t *ucs1, const wchar_t *ucs2) | 134 | UniStrcat(__le16 *ucs1, const __le16 *ucs2) |
135 | { | 135 | { |
136 | wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */ | 136 | __le16 *anchor = ucs1; /* save a pointer to start of ucs1 */ |
137 | 137 | ||
138 | while (*ucs1++) ; /* To end of first string */ | 138 | while (*ucs1++) ; /* To end of first string */ |
139 | ucs1--; /* Return to the null */ | 139 | ucs1--; /* Return to the null */ |
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 5005c7995b6a..066950671929 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -4886,7 +4886,7 @@ getDFSRetry: | |||
4886 | le16_to_cpu(pSMBr->t2.DataCount), | 4886 | le16_to_cpu(pSMBr->t2.DataCount), |
4887 | num_of_nodes, target_nodes, nls_codepage, | 4887 | num_of_nodes, target_nodes, nls_codepage, |
4888 | remap, search_name, | 4888 | remap, search_name, |
4889 | pSMBr->hdr.Flags2 & SMBFLG2_UNICODE); | 4889 | (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0); |
4890 | 4890 | ||
4891 | GetDFSRefExit: | 4891 | GetDFSRefExit: |
4892 | cifs_buf_release(pSMB); | 4892 | cifs_buf_release(pSMB); |