Re: [PATCH] crypto: ccp - Replace snprintf("%s") with strscpy
From: Herbert Xu
Date: Thu Apr 02 2026 - 21:04:51 EST
On Tue, Mar 24, 2026 at 12:30:07PM +0100, Thorsten Blum wrote:
> Replace snprintf("%s") with the faster and more direct strscpy().
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
> ---
> drivers/crypto/ccp/ccp-crypto-aes-galois.c | 6 +++---
> drivers/crypto/ccp/ccp-crypto-aes-xts.c | 6 +++---
> drivers/crypto/ccp/ccp-crypto-aes.c | 5 ++---
> drivers/crypto/ccp/ccp-crypto-des3.c | 5 ++---
> drivers/crypto/ccp/ccp-crypto-rsa.c | 6 +++---
> drivers/crypto/ccp/ccp-crypto-sha.c | 5 ++---
> 6 files changed, 15 insertions(+), 18 deletions(-)
Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt