crypto: sun4i-ss: hide the Invalid keylen message
Corentin Labbe
maintainerPATCH 1/1 crypto: sun4i-ss: hide the Invalid keylen message
Drop the "Invalid keylen" message to debug level, it adds no value, and when CRYPTO_EXTRA_TEST is enabled, it floods the console.
Signed-off-by Corentin Labbe <[email protected]>
--- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c +1 -1
@@ -540,7 +540,7 @@ int sun4i_ss_aes_setkey(struct crypto_skcipher *tfm, const u8 *key, op->keymode =SS_AES_256BITS ;break ;default : -dev_err (ss->dev,"ERROR: Invalid keylen %u\n" , keylen); +dev_dbg (ss->dev,"ERROR: Invalid keylen %u\n" , keylen);crypto_skcipher_set_flags (tfm,CRYPTO_TFM_RES_BAD_KEY_LEN );return -EINVAL ; }
Signature · 1 line
2.23.0
Herbert Xu
maintainerQuoted 7 lines · Corentin Labbe
Drop the "Invalid keylen" message to debug level, it adds no value, and when
CRYPTO_EXTRA_TESTis enabled, it floods the console.Signed-off-by Corentin Labbe <[email protected]>--- drivers/crypto/allwinner/sun4i-ss/sun4i-ss-cipher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt