mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Cc: Bill Pemberton <[email protected]> Cc: Herbert Xu <[email protected]> Cc: Kent Yoder <[email protected]> Cc: Jamie Iles <[email protected]> Cc: Phil Sutter <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
efa59e2e91
commit
51a7163499
1 changed files with 2 additions and 2 deletions
|
|
@ -622,8 +622,8 @@ static int queue_manag(void *data)
|
|||
}
|
||||
|
||||
if (async_req) {
|
||||
if (async_req->tfm->__crt_alg->cra_type !=
|
||||
&crypto_ahash_type) {
|
||||
if (crypto_tfm_alg_type(async_req->tfm) !=
|
||||
CRYPTO_ALG_TYPE_AHASH) {
|
||||
struct ablkcipher_request *req =
|
||||
ablkcipher_request_cast(async_req);
|
||||
mv_start_new_crypt_req(req);
|
||||
|
|
|
|||
Loading…
Reference in a new issue