Skip to content

Commit a268231

Browse files
tobluxherbertx
authored andcommitted
crypto: proc - Use str_yes_no() and str_no_yes() helpers
Remove hard-coded strings by using the str_yes_no() and str_no_yes() helpers. Remove unnecessary curly braces. Signed-off-by: Thorsten Blum <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
1 parent 7fa4817 commit a268231

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

crypto/proc.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,10 @@ static int c_show(struct seq_file *m, void *p)
4747
(alg->cra_flags & CRYPTO_ALG_TESTED) ?
4848
"passed" : "unknown");
4949
seq_printf(m, "internal : %s\n",
50-
(alg->cra_flags & CRYPTO_ALG_INTERNAL) ?
51-
"yes" : "no");
52-
if (fips_enabled) {
50+
str_yes_no(alg->cra_flags & CRYPTO_ALG_INTERNAL));
51+
if (fips_enabled)
5352
seq_printf(m, "fips : %s\n",
54-
(alg->cra_flags & CRYPTO_ALG_FIPS_INTERNAL) ?
55-
"no" : "yes");
56-
}
53+
str_no_yes(alg->cra_flags & CRYPTO_ALG_FIPS_INTERNAL));
5754

5855
if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
5956
seq_printf(m, "type : larval\n");

0 commit comments

Comments
 (0)