From: Pablo de Lara Date: Tue, 15 May 2018 20:21:02 +0000 (+0100) Subject: crypto/aesni_gcm: remove unneeded cast X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5fa2a3089b5df4089009558e9d2f9b8aa31fccfb;p=dpdk.git 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 --- 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;