From: Thorsten Blum Date: Fri, 17 Jan 2025 14:42:22 +0000 (+0100) Subject: crypto: skcipher - use str_yes_no() helper in crypto_skcipher_show() X-Git-Tag: block-6.15-20250403~39^2~163 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=1fe244c5916ad63ab7b706a0de713cc16200f47a;p=linux-block.git crypto: skcipher - use str_yes_no() helper in crypto_skcipher_show() Remove hard-coded strings by using the str_yes_no() helper function. Signed-off-by: Thorsten Blum Signed-off-by: Herbert Xu --- diff --git a/crypto/skcipher.c b/crypto/skcipher.c index a9eb2dcf2898..e3751cc88b76 100644 --- a/crypto/skcipher.c +++ b/crypto/skcipher.c @@ -22,6 +22,7 @@ #include #include #include +#include #include #include "skcipher.h" @@ -612,7 +613,7 @@ static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg) seq_printf(m, "type : skcipher\n"); seq_printf(m, "async : %s\n", - alg->cra_flags & CRYPTO_ALG_ASYNC ? "yes" : "no"); + str_yes_no(alg->cra_flags & CRYPTO_ALG_ASYNC)); seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); seq_printf(m, "min keysize : %u\n", skcipher->min_keysize); seq_printf(m, "max keysize : %u\n", skcipher->max_keysize);