Skip to content

Commit 284316d

Browse files
committed
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>
1 parent 9d49640 commit 284316d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fs/cifs/cifs_unicode.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,10 +130,10 @@ wchar_t cifs_toupper(wchar_t in);
130130
* Returns:
131131
* Address of the first string
132132
*/
133-
static inline wchar_t *
134-
UniStrcat(wchar_t *ucs1, const wchar_t *ucs2)
133+
static inline __le16 *
134+
UniStrcat(__le16 *ucs1, const __le16 *ucs2)
135135
{
136-
wchar_t *anchor = ucs1; /* save a pointer to start of ucs1 */
136+
__le16 *anchor = ucs1; /* save a pointer to start of ucs1 */
137137

138138
while (*ucs1++) ; /* To end of first string */
139139
ucs1--; /* Return to the null */

fs/cifs/cifssmb.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4886,7 +4886,7 @@ CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
48864886
le16_to_cpu(pSMBr->t2.DataCount),
48874887
num_of_nodes, target_nodes, nls_codepage,
48884888
remap, search_name,
4889-
pSMBr->hdr.Flags2 & SMBFLG2_UNICODE);
4889+
(pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0);
48904890

48914891
GetDFSRefExit:
48924892
cifs_buf_release(pSMB);

0 commit comments

Comments
 (0)