summaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2015-07-08 11:55:30 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-07-14 14:56:44 +0800
commit31d228cc644034da97394bbadb2dc55ad9bcddb9 (patch)
tree46b99bd1a31c3e56fbb10195355745e783e5580e /crypto
parent773bb50625cd23c7711bcd1410fffe8a0cab121b (diff)
downloadop-kernel-dev-31d228cc644034da97394bbadb2dc55ad9bcddb9.zip
op-kernel-dev-31d228cc644034da97394bbadb2dc55ad9bcddb9.tar.gz
crypto: api - Remove unused __crypto_dequeue_request
The function __crypto_dequeue_request is completely unused. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto')
-rw-r--r--crypto/algapi.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/crypto/algapi.c b/crypto/algapi.c
index 3c079b7..ceebfcf 100644
--- a/crypto/algapi.c
+++ b/crypto/algapi.c
@@ -892,7 +892,7 @@ out:
}
EXPORT_SYMBOL_GPL(crypto_enqueue_request);
-void *__crypto_dequeue_request(struct crypto_queue *queue, unsigned int offset)
+struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue)
{
struct list_head *request;
@@ -907,14 +907,7 @@ void *__crypto_dequeue_request(struct crypto_queue *queue, unsigned int offset)
request = queue->list.next;
list_del(request);
- return (char *)list_entry(request, struct crypto_async_request, list) -
- offset;
-}
-EXPORT_SYMBOL_GPL(__crypto_dequeue_request);
-
-struct crypto_async_request *crypto_dequeue_request(struct crypto_queue *queue)
-{
- return __crypto_dequeue_request(queue, 0);
+ return list_entry(request, struct crypto_async_request, list);
}
EXPORT_SYMBOL_GPL(crypto_dequeue_request);
OpenPOWER on IntegriCloud