From: Thorsten Blum Date: Tue, 8 Apr 2025 11:22:59 +0000 (+0200) Subject: crypto: essiv - Remove unnecessary strscpy() size argument X-Git-Tag: block-6.16-20250606~34^2~279 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=c80d6598ffef3154698fb991c15211762cbf550e;p=linux-block.git 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 Signed-off-by: Herbert Xu --- diff --git a/crypto/essiv.c b/crypto/essiv.c index ec0ec8992c2d..cfce8ef7ab1f 100644 --- a/crypto/essiv.c +++ b/crypto/essiv.c @@ -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 */