Skip to content

Commit 1bc081b

Browse files
author
Steve French
committed
smb3: more minor cleanups for session handling routines
Some trivial cleanup pointed out by checkpatch Reviewed-by: Bharath SM <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 43960dc commit 1bc081b

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

fs/smb/client/sess.c

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -659,8 +659,7 @@ static void ascii_ssetup_strings(char **pbcc_area, struct cifs_ses *ses,
659659
if (WARN_ON_ONCE(len < 0))
660660
len = CIFS_MAX_DOMAINNAME_LEN - 1;
661661
bcc_ptr += len;
662-
} /* else we will send a null domain name
663-
so the server will default to its own domain */
662+
} /* else we send a null domain name so server will default to its own domain */
664663
*bcc_ptr = 0;
665664
bcc_ptr++;
666665

@@ -756,11 +755,14 @@ static void decode_ascii_ssetup(char **pbcc_area, __u16 bleft,
756755
if (len > bleft)
757756
return;
758757

759-
/* No domain field in LANMAN case. Domain is
760-
returned by old servers in the SMB negprot response */
761-
/* BB For newer servers which do not support Unicode,
762-
but thus do return domain here we could add parsing
763-
for it later, but it is not very important */
758+
/*
759+
* No domain field in LANMAN case. Domain is
760+
* returned by old servers in the SMB negprot response
761+
*
762+
* BB For newer servers which do not support Unicode,
763+
* but thus do return domain here, we could add parsing
764+
* for it later, but it is not very important
765+
*/
764766
cifs_dbg(FYI, "ascii: bytes left %d\n", bleft);
765767
}
766768
#endif /* CONFIG_CIFS_ALLOW_INSECURE_LEGACY */
@@ -816,9 +818,12 @@ int decode_ntlmssp_challenge(char *bcc_ptr, int blob_len,
816818
ses->ntlmssp->server_flags = server_flags;
817819

818820
memcpy(ses->ntlmssp->cryptkey, pblob->Challenge, CIFS_CRYPTO_KEY_SIZE);
819-
/* In particular we can examine sign flags */
820-
/* BB spec says that if AvId field of MsvAvTimestamp is populated then
821-
we must set the MIC field of the AUTHENTICATE_MESSAGE */
821+
/*
822+
* In particular we can examine sign flags
823+
*
824+
* BB spec says that if AvId field of MsvAvTimestamp is populated then
825+
* we must set the MIC field of the AUTHENTICATE_MESSAGE
826+
*/
822827

823828
tioffset = le32_to_cpu(pblob->TargetInfoArray.BufferOffset);
824829
tilen = le16_to_cpu(pblob->TargetInfoArray.Length);

0 commit comments

Comments
 (0)