forked from Minki/linux
crypto: proc - simplify the c_show function
The path with the CRYPTO_ALG_LARVAL flag has jumped to the end before Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
9195189e00
commit
7f1cfe41cc
@ -60,7 +60,7 @@ static int c_show(struct seq_file *m, void *p)
|
|||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (alg->cra_flags & (CRYPTO_ALG_TYPE_MASK | CRYPTO_ALG_LARVAL)) {
|
switch (alg->cra_flags & CRYPTO_ALG_TYPE_MASK) {
|
||||||
case CRYPTO_ALG_TYPE_CIPHER:
|
case CRYPTO_ALG_TYPE_CIPHER:
|
||||||
seq_printf(m, "type : cipher\n");
|
seq_printf(m, "type : cipher\n");
|
||||||
seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
|
seq_printf(m, "blocksize : %u\n", alg->cra_blocksize);
|
||||||
|
Loading…
Reference in New Issue
Block a user