]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
crypto: artpec6 - refactor crypto_setup_out_descr for readability
authorThorsten Blum <thorsten.blum@linux.dev>
Wed, 6 May 2026 09:16:28 +0000 (11:16 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 15 May 2026 10:08:47 +0000 (18:08 +0800)
commit4e6063436cd21ac813494df4062e8b49c5f93bd6
tree9908fb410c11c40f1ae144f390c86aa7fd2a9b12
parent24818f77603b3fcb7f3da5802b28bcc5ac7604aa
crypto: artpec6 - refactor crypto_setup_out_descr for readability

Replace if-else with an early return to reduce code nesting, and move
the variable declarations to the top of the function.

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