mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 13:30:45 -05:00
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>
This commit is contained in:
committed by
Herbert Xu
parent
6b7f9397c9
commit
c80d6598ff
@@ -548,8 +548,7 @@ static int essiv_create(struct crypto_template *tmpl, struct rtattr **tb)
|
||||
}
|
||||
|
||||
/* record the driver name so we can instantiate this exact algo later */
|
||||
strscpy(ictx->shash_driver_name, hash_alg->base.cra_driver_name,
|
||||
CRYPTO_MAX_ALG_NAME);
|
||||
strscpy(ictx->shash_driver_name, hash_alg->base.cra_driver_name);
|
||||
|
||||
/* Instance fields */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user