From: Namjae Jeon Date: Wed, 26 May 2021 06:28:48 +0000 (+0900) Subject: cifsd: remove unneeded type casting X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=192cc732c65a7c22da77cf21baba5e8a3efdea29;p=linux.git cifsd: remove unneeded type casting Remove unneeded type casting. Reviewed-by: Dan Carpenter Signed-off-by: Namjae Jeon Signed-off-by: Steve French --- diff --git a/fs/cifsd/auth.c b/fs/cifsd/auth.c index 7771429f55a42..ed32052fbf930 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) {