Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: simd - Simplify request size calculation in simd_aead_init

Fold both assignments into a single max() call to simplify the code.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Thorsten Blum and committed by
Herbert Xu
b4f275b9 280bfc3e

+2 -2
+2 -2
crypto/simd.c
··· 352 352 353 353 ctx->cryptd_tfm = cryptd_tfm; 354 354 355 - reqsize = crypto_aead_reqsize(cryptd_aead_child(cryptd_tfm)); 356 - reqsize = max(reqsize, crypto_aead_reqsize(&cryptd_tfm->base)); 355 + reqsize = max(crypto_aead_reqsize(cryptd_aead_child(cryptd_tfm)), 356 + crypto_aead_reqsize(&cryptd_tfm->base)); 357 357 reqsize += sizeof(struct aead_request); 358 358 359 359 crypto_aead_set_reqsize(tfm, reqsize);