From 5fa2a3089b5df4089009558e9d2f9b8aa31fccfb Mon Sep 17 00:00:00 2001 From: Pablo de Lara Date: Tue, 15 May 2018 21:21:02 +0100 Subject: [PATCH] crypto/aesni_gcm: remove unneeded cast qp->temp_digest is already an array of uint8_t, so no need to cast to uint8_t*. Fixes: baf1e63bfd65 ("crypto/aesni_gcm: do not append digest") Cc: stable@dpdk.org Signed-off-by: Pablo de Lara Acked-by: Fiona Trahe --- drivers/crypto/aesni_gcm/aesni_gcm_pmd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c index c907551a52..bc5ee1b73f 100644 --- a/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c +++ b/drivers/crypto/aesni_gcm/aesni_gcm_pmd.c @@ -352,7 +352,7 @@ post_process_gcm_crypto_op(struct aesni_gcm_qp *qp, session->op == AESNI_GMAC_OP_VERIFY) { uint8_t *digest; - uint8_t *tag = (uint8_t *)&qp->temp_digest; + uint8_t *tag = qp->temp_digest; if (session->op == AESNI_GMAC_OP_VERIFY) digest = op->sym->auth.digest.data; -- 2.20.1