Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 284316dd authored by Steve French's avatar Steve French
Browse files

CIFS: Fix sparse warnings



Fix two minor sparse compile check warnings

Signed-off-by: default avatarSteve French <steve.french@primarydata.com>
Acked-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: default avatarAurelien Aptel <aaptel@suse.com>
parent 9d49640a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -130,10 +130,10 @@ wchar_t cifs_toupper(wchar_t in);
 * Returns:
 *     Address of the first string
 */
static inline wchar_t *
UniStrcat(wchar_t *ucs1, const wchar_t *ucs2)
static inline __le16 *
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 */
	ucs1--;			/* Return to the null */
+1 −1
Original line number Diff line number Diff line
@@ -4886,7 +4886,7 @@ CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
				 le16_to_cpu(pSMBr->t2.DataCount),
				 num_of_nodes, target_nodes, nls_codepage,
				 remap, search_name,
				 pSMBr->hdr.Flags2 & SMBFLG2_UNICODE);
				 (pSMBr->hdr.Flags2 & SMBFLG2_UNICODE) != 0);

GetDFSRefExit:
	cifs_buf_release(pSMB);