diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2023-08-13 14:55:20 +0800 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2023-08-18 17:01:11 +0800 |
commit | 5ce0bc68e0eeab14fe4dd3be9975c5ced7b20617 (patch) | |
tree | a234142b76442eb72e095245e538a7e9835d6e07 /crypto | |
parent | 28f860d377da437695a6db2330dad3f8ca672f8d (diff) | |
download | lwn-5ce0bc68e0eeab14fe4dd3be9975c5ced7b20617.tar.gz lwn-5ce0bc68e0eeab14fe4dd3be9975c5ced7b20617.zip |
crypto: engine - Remove crypto_engine_ctx
Remove the obsolete crypto_engine_ctx structure.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/crypto_engine.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/crypto/crypto_engine.c b/crypto/crypto_engine.c index abfb1e6bfa48..108d9d55c509 100644 --- a/crypto/crypto_engine.c +++ b/crypto/crypto_engine.c @@ -79,7 +79,6 @@ static void crypto_pump_requests(struct crypto_engine *engine, unsigned long flags; bool was_busy = false; int ret; - struct crypto_engine_ctx *enginectx; spin_lock_irqsave(&engine->queue_lock, flags); @@ -154,14 +153,9 @@ start_request: struct crypto_engine_alg, base); op = &alg->op; } else { - enginectx = crypto_tfm_ctx(async_req->tfm); - op = &enginectx->op; - - if (!op->do_one_request) { - dev_err(engine->dev, "failed to do request\n"); - ret = -EINVAL; - goto req_err_1; - } + dev_err(engine->dev, "failed to do request\n"); + ret = -EINVAL; + goto req_err_1; } ret = op->do_one_request(engine, async_req); |