Re: [PATCH v5 2/2] crypto: ti: Add driver for DTHE V2 AES Engine (ECB, CBC)
From: Herbert Xu
Date: Wed Jun 11 2025 - 05:33:14 EST
On Tue, Jun 03, 2025 at 06:07:29PM +0530, T Pratham wrote:
>
> +static void dthe_cipher_exit_tfm(struct crypto_skcipher *tfm)
> +{
> + struct dthe_tfm_ctx *ctx = crypto_skcipher_ctx(tfm);
> +
> + ctx->keylen = 0;
> +}
This is pointless. Just get rid of the exit_tfm function.
Cheers,
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt