cifsd: remove unneeded type casting
authorNamjae Jeon <namjae.jeon@samsung.com>
Wed, 26 May 2021 06:28:48 +0000 (15:28 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Wed, 26 May 2021 09:12:16 +0000 (18:12 +0900)
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>
fs/cifsd/auth.c

index 7771429..ed32052 100644 (file)
@@ -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) {