Skip to content

Commit 5ce0bc6

Browse files
committed
crypto: engine - Remove crypto_engine_ctx
Remove the obsolete crypto_engine_ctx structure. Signed-off-by: Herbert Xu <[email protected]>
1 parent 28f860d commit 5ce0bc6

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

crypto/crypto_engine.c

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ static void crypto_pump_requests(struct crypto_engine *engine,
7979
unsigned long flags;
8080
bool was_busy = false;
8181
int ret;
82-
struct crypto_engine_ctx *enginectx;
8382

8483
spin_lock_irqsave(&engine->queue_lock, flags);
8584

@@ -154,14 +153,9 @@ static void crypto_pump_requests(struct crypto_engine *engine,
154153
struct crypto_engine_alg, base);
155154
op = &alg->op;
156155
} else {
157-
enginectx = crypto_tfm_ctx(async_req->tfm);
158-
op = &enginectx->op;
159-
160-
if (!op->do_one_request) {
161-
dev_err(engine->dev, "failed to do request\n");
162-
ret = -EINVAL;
163-
goto req_err_1;
164-
}
156+
dev_err(engine->dev, "failed to do request\n");
157+
ret = -EINVAL;
158+
goto req_err_1;
165159
}
166160

167161
ret = op->do_one_request(engine, async_req);

include/crypto/engine.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ struct crypto_engine_op {
2626
void *areq);
2727
};
2828

29-
struct crypto_engine_ctx {
30-
struct crypto_engine_op op;
31-
};
32-
3329
struct aead_engine_alg {
3430
struct aead_alg base;
3531
struct crypto_engine_op op;

0 commit comments

Comments
 (0)