crypto: atmel-ecc - simplify control flow in atmel_ecdh_set_secret

Free the public key directly on I2C transaction failure and remove the
free_public_key label to simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Thorsten Blum 2026-07-28 22:58:26 +02:00 • committed by Herbert Xu
commit bda65642eb