Skip to content

Commit 1fe244c

Browse files
tobluxherbertx
authored andcommitted
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 <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 3371482 commit 1fe244c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

crypto/skcipher.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
#include <linux/seq_file.h>
2323
#include <linux/slab.h>
2424
#include <linux/string.h>
25+
#include <linux/string_choices.h>
2526
#include <net/netlink.h>
2627
#include "skcipher.h"
2728

@@ -612,7 +613,7 @@ static void crypto_skcipher_show(struct seq_file *m, struct crypto_alg *alg)
612613

613614
seq_printf(m, "type : skcipher\n");
614615
seq_printf(m, "async : %s\n",
615-
alg->cra_flags & CRYPTO_ALG_ASYNC ? "yes" : "no");
616+
str_yes_no(alg->cra_flags & CRYPTO_ALG_ASYNC));
616617
seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
617618
seq_printf(m, "min keysize : %u\n", skcipher->min_keysize);
618619
seq_printf(m, "max keysize : %u\n", skcipher->max_keysize);

0 commit comments

Comments
 (0)