From: Namjae Jeon Date: Wed, 26 May 2021 06:28:48 +0000 (+0900) Subject: cifsd: remove unneeded type casting X-Git-Tag: accepted/tizen/unified/20230118.172025~6553^2~18^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=192cc732c65a7c22da77cf21baba5e8a3efdea29;p=platform%2Fkernel%2Flinux-rpi.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 7771429..ed32052f 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) {