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: essiv - Remove unnecessary strscpy() size argument

If the destination buffer has a fixed length, strscpy() automatically
determines its size using sizeof() when the argument is omitted. This
makes the explicit size argument unnecessary - remove it.

No functional changes intended.

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
c80d6598 6b7f9397

+1 -2
+1 -2
crypto/essiv.c
··· 548 548 } 549 549 550 550 /* record the driver name so we can instantiate this exact algo later */ 551 - strscpy(ictx->shash_driver_name, hash_alg->base.cra_driver_name, 552 - CRYPTO_MAX_ALG_NAME); 551 + strscpy(ictx->shash_driver_name, hash_alg->base.cra_driver_name); 553 552 554 553 /* Instance fields */ 555 554