mirror of
https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10.git
synced 2026-09-09 00:07:04 +08:00
crypto: proc - Use str_yes_no() and str_no_yes() helpers
JIRA: https://redhat.atlassian.net/browse/RHEL-186630 commit a268231678b08eee776797007e05619a5375cbb3 Author: Thorsten Blum <thorsten.blum@linux.dev> Date: Mon Dec 30 12:36:54 2024 +0100 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 <thorsten.blum@linux.dev> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
+3
-6
@@ -47,13 +47,10 @@ static int c_show(struct seq_file *m, void *p)
|
||||
(alg->cra_flags & CRYPTO_ALG_TESTED) ?
|
||||
"passed" : "unknown");
|
||||
seq_printf(m, "internal : %s\n",
|
||||
(alg->cra_flags & CRYPTO_ALG_INTERNAL) ?
|
||||
"yes" : "no");
|
||||
if (fips_enabled) {
|
||||
str_yes_no(alg->cra_flags & CRYPTO_ALG_INTERNAL));
|
||||
if (fips_enabled)
|
||||
seq_printf(m, "fips : %s\n",
|
||||
(alg->cra_flags & CRYPTO_ALG_FIPS_INTERNAL) ?
|
||||
"no" : "yes");
|
||||
}
|
||||
str_no_yes(alg->cra_flags & CRYPTO_ALG_FIPS_INTERNAL));
|
||||
|
||||
if (alg->cra_flags & CRYPTO_ALG_LARVAL) {
|
||||
seq_printf(m, "type : larval\n");
|
||||
|
||||
Reference in New Issue
Block a user