mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-25 21:24:08 +08:00
crypto: aead - Remove unused inline functions from aead
The aead_enqueue_request, aead_dequeue_request and aead_get_backlog
are no longer used since commit 04a4616e6a
("crypto: omap-aes-gcm
- convert to use crypto engine"), their functinoality has been
replaced by crypto engine, so remove them.
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
5e9578b29a
commit
d126edd771
@ -114,31 +114,6 @@ static inline void aead_init_queue(struct aead_queue *queue,
|
||||
crypto_init_queue(&queue->base, max_qlen);
|
||||
}
|
||||
|
||||
static inline int aead_enqueue_request(struct aead_queue *queue,
|
||||
struct aead_request *request)
|
||||
{
|
||||
return crypto_enqueue_request(&queue->base, &request->base);
|
||||
}
|
||||
|
||||
static inline struct aead_request *aead_dequeue_request(
|
||||
struct aead_queue *queue)
|
||||
{
|
||||
struct crypto_async_request *req;
|
||||
|
||||
req = crypto_dequeue_request(&queue->base);
|
||||
|
||||
return req ? container_of(req, struct aead_request, base) : NULL;
|
||||
}
|
||||
|
||||
static inline struct aead_request *aead_get_backlog(struct aead_queue *queue)
|
||||
{
|
||||
struct crypto_async_request *req;
|
||||
|
||||
req = crypto_get_backlog(&queue->base);
|
||||
|
||||
return req ? container_of(req, struct aead_request, base) : NULL;
|
||||
}
|
||||
|
||||
static inline unsigned int crypto_aead_alg_chunksize(struct aead_alg *alg)
|
||||
{
|
||||
return alg->chunksize;
|
||||
|
Loading…
Reference in New Issue
Block a user