]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: atmel-ecc - drop dead code in atmel_ecdh_max_size
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 2 Jun 2026 22:25:19 +0000 (00:25 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 12 Jun 2026 01:56:45 +0000 (09:56 +0800)
commit70fd646ae5ddaae0a7fbbba94b500bde2e1211f0
treecfcdc1961d1973e34c718660c1e236556894ac17
parent9dbf173bd32d5f81b005008b682bfb50aa093455
crypto: atmel-ecc - drop dead code in atmel_ecdh_max_size

atmel_ecdh_init_tfm() always allocates ctx->fallback, so it is never
NULL in atmel_ecdh_max_size(). Remove the dead code and return
crypto_kpp_maxsize() directly.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/atmel-ecc.c