crypto: engine - Remove crypto_engine_ctx
Remove the obsolete crypto_engine_ctx structure. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
28f860d377
commit
5ce0bc68e0
|
@ -79,7 +79,6 @@ static void crypto_pump_requests(struct crypto_engine *engine,
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
bool was_busy = false;
|
bool was_busy = false;
|
||||||
int ret;
|
int ret;
|
||||||
struct crypto_engine_ctx *enginectx;
|
|
||||||
|
|
||||||
spin_lock_irqsave(&engine->queue_lock, flags);
|
spin_lock_irqsave(&engine->queue_lock, flags);
|
||||||
|
|
||||||
|
@ -154,14 +153,9 @@ start_request:
|
||||||
struct crypto_engine_alg, base);
|
struct crypto_engine_alg, base);
|
||||||
op = &alg->op;
|
op = &alg->op;
|
||||||
} else {
|
} else {
|
||||||
enginectx = crypto_tfm_ctx(async_req->tfm);
|
dev_err(engine->dev, "failed to do request\n");
|
||||||
op = &enginectx->op;
|
ret = -EINVAL;
|
||||||
|
goto req_err_1;
|
||||||
if (!op->do_one_request) {
|
|
||||||
dev_err(engine->dev, "failed to do request\n");
|
|
||||||
ret = -EINVAL;
|
|
||||||
goto req_err_1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = op->do_one_request(engine, async_req);
|
ret = op->do_one_request(engine, async_req);
|
||||||
|
|
|
@ -26,10 +26,6 @@ struct crypto_engine_op {
|
||||||
void *areq);
|
void *areq);
|
||||||
};
|
};
|
||||||
|
|
||||||
struct crypto_engine_ctx {
|
|
||||||
struct crypto_engine_op op;
|
|
||||||
};
|
|
||||||
|
|
||||||
struct aead_engine_alg {
|
struct aead_engine_alg {
|
||||||
struct aead_alg base;
|
struct aead_alg base;
|
||||||
struct crypto_engine_op op;
|
struct crypto_engine_op op;
|
||||||
|
|
Loading…
Reference in New Issue