From: Thorsten Blum Date: Tue, 11 Feb 2025 09:52:54 +0000 (+0100) Subject: crypto: aead - use str_yes_no() helper in crypto_aead_show() X-Git-Tag: v6.15-rc1~118^2~134 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=844c683d1f00cd5f950dd09aefd53a522f686bc5;p=thirdparty%2Flinux.git crypto: aead - use str_yes_no() helper in crypto_aead_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/aead.c b/crypto/aead.c index cade532413bfc..12f5b42171af3 100644 --- a/crypto/aead.c +++ b/crypto/aead.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include "internal.h" @@ -156,8 +157,8 @@ static void crypto_aead_show(struct seq_file *m, struct crypto_alg *alg) struct aead_alg *aead = container_of(alg, struct aead_alg, base); seq_printf(m, "type : aead\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, "ivsize : %u\n", aead->ivsize); seq_printf(m, "maxauthsize : %u\n", aead->maxauthsize);