diff options
author | Marek Vasut <marex@denx.de> | 2014-05-14 05:42:52 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-05-22 09:03:17 -0400 |
commit | 51a716349946362dee27aa48b1987870cb69636b (patch) | |
tree | d081116de6dd99a1a153243f12d3e478b165f2e2 | |
parent | efa59e2e916c816a667c7b972723d979c0faca1b (diff) |
crypto: cesa - tfm->__crt_alg->cra_type directly
The checking for the type of algorithm implementation is pretty
strange here. Use regular flags to check for the type instead.
Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Bill Pemberton <wfp5p@virginia.edu>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: Kent Yoder <key@linux.vnet.ibm.com>
Cc: Jamie Iles <jamie@jamieiles.com>
Cc: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
-rw-r--r-- | drivers/crypto/mv_cesa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c index 1549db76982e..29d0ee504907 100644 --- a/drivers/crypto/mv_cesa.c +++ b/drivers/crypto/mv_cesa.c | |||
@@ -622,8 +622,8 @@ static int queue_manag(void *data) | |||
622 | } | 622 | } |
623 | 623 | ||
624 | if (async_req) { | 624 | if (async_req) { |
625 | if (async_req->tfm->__crt_alg->cra_type != | 625 | if (crypto_tfm_alg_type(async_req->tfm) != |
626 | &crypto_ahash_type) { | 626 | CRYPTO_ALG_TYPE_AHASH) { |
627 | struct ablkcipher_request *req = | 627 | struct ablkcipher_request *req = |
628 | ablkcipher_request_cast(async_req); | 628 | ablkcipher_request_cast(async_req); |
629 | mv_start_new_crypt_req(req); | 629 | mv_start_new_crypt_req(req); |