From: Thorsten Blum Date: Mon, 10 Feb 2025 10:04:48 +0000 (+0100) Subject: crypto: ahash - use str_yes_no() helper in crypto_ahash_show() X-Git-Tag: v6.15-rc1~118^2~138 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77cb2f63ad6c546267b2fcb428cf9fceedef279a;p=thirdparty%2Fkernel%2Flinux.git crypto: ahash - use str_yes_no() helper in crypto_ahash_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/ahash.c b/crypto/ahash.c index b08b89ec26ec5..923c68a39ddd4 100644 --- a/crypto/ahash.c +++ b/crypto/ahash.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include "hash.h" @@ -536,8 +537,8 @@ static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) static void crypto_ahash_show(struct seq_file *m, struct crypto_alg *alg) { seq_printf(m, "type : ahash\n"); - seq_printf(m, "async : %s\n", alg->cra_flags & CRYPTO_ALG_ASYNC ? - "yes" : "no"); + seq_printf(m, "async : %s\n", + str_yes_no(alg->cra_flags & CRYPTO_ALG_ASYNC)); seq_printf(m, "blocksize : %u\n", alg->cra_blocksize); seq_printf(m, "digestsize : %u\n", __crypto_hash_alg_common(alg)->digestsize);