提交 284316dd 编写于 作者: S Steve French

CIFS: Fix sparse warnings

Fix two minor sparse compile check warnings
Signed-off-by: NSteve French <steve.french@primarydata.com>
Acked-by: NPavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: NAurelien Aptel <aaptel@suse.com>
上级 9d49640a
...@@ -130,10 +130,10 @@ wchar_t cifs_toupper(wchar_t in); ...@@ -130,10 +130,10 @@ wchar_t cifs_toupper(wchar_t in);
* Returns: * Returns:
* Address of the first string * Address of the first string
*/ */
static inline wchar_t * static inline __le16 *
UniStrcat(wchar_t *ucs1, const wchar_t *ucs2) UniStrcat(__le16 *ucs1, const __le16 *ucs2)
{ {
wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */ __le16 *anchor = ucs1; /* save a pointer to start of ucs1 */
while (*ucs1++) ; /* To end of first string */ while (*ucs1++) ; /* To end of first string */
ucs1--; /* Return to the null */ ucs1--; /* Return to the null */
......
...@@ -4886,7 +4886,7 @@ CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses, ...@@ -4886,7 +4886,7 @@ CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
le16_to_cpu(pSMBr->t2.DataCount), le16_to_cpu(pSMBr->t2.DataCount),
num_of_nodes, target_nodes, nls_codepage, num_of_nodes, target_nodes, nls_codepage,
remap, search_name, remap, search_name,
pSMBr->hdr.Flags2 & SMBFLG2_UNICODE); (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0);
GetDFSRefExit: GetDFSRefExit:
cifs_buf_release(pSMB); cifs_buf_release(pSMB);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册