aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 15:28:48 +0900
committerNamjae Jeon <namjae.jeon@samsung.com>2021-05-26 18:12:16 +0900
commit192cc732c65a7c22da77cf21baba5e8a3efdea29 (patch)
tree218918ad0c6456a6d42d4a74bed9c58d1eb01f8b
parentcifsd: simplify error handling in ksmbd_auth_ntlm() (diff)
downloadwireguard-linux-192cc732c65a7c22da77cf21baba5e8a3efdea29.tar.xz
wireguard-linux-192cc732c65a7c22da77cf21baba5e8a3efdea29.zip
cifsd: remove unneeded type casting
Remove unneeded type casting. Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/cifsd/auth.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c
index 7771429f55a4..ed32052fbf93 100644
--- a/fs/cifsd/auth.c
+++ b/fs/cifsd/auth.c
@@ -410,8 +410,7 @@ int ksmbd_auth_ntlmv2(struct ksmbd_session *sess, struct ntlmv2_resp *ntlmv2,
}
memcpy(construct, sess->ntlmssp.cryptkey, CIFS_CRYPTO_KEY_SIZE);
- memcpy(construct + CIFS_CRYPTO_KEY_SIZE,
- (char *)(&ntlmv2->blob_signature), blen);
+ memcpy(construct + CIFS_CRYPTO_KEY_SIZE, &ntlmv2->blob_signature, blen);
rc = crypto_shash_update(CRYPTO_HMACMD5(ctx), construct, len);
if (rc) {