summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/hifn_795x.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-28 21:53:07 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2015-12-29 21:32:44 +0800
commit48d627648141479c8be8acd110191072e24eba25 (patch)
tree42fc98c4a45be12d0757b0336f82c59875af6d52 /drivers/crypto/hifn_795x.c
parent2a5de720dcecbc7ba998bc1ae8f7b9cd7cb81654 (diff)
downloadlinux-48d627648141479c8be8acd110191072e24eba25.tar.gz
linux-48d627648141479c8be8acd110191072e24eba25.tar.bz2
linux-48d627648141479c8be8acd110191072e24eba25.zip
crypto: hifn_795x, picoxcell - use ablkcipher_request_cast
Use ablkcipher_request_cast() instead of open-coding it. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/hifn_795x.c')
-rw-r--r--drivers/crypto/hifn_795x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/hifn_795x.c b/drivers/crypto/hifn_795x.c
index 201e57dc1c4d..eee2c7e6c299 100644
--- a/drivers/crypto/hifn_795x.c
+++ b/drivers/crypto/hifn_795x.c
@@ -1943,7 +1943,7 @@ static void hifn_flush(struct hifn_device *dev)
spin_lock_irqsave(&dev->lock, flags);
while ((async_req = crypto_dequeue_request(&dev->queue))) {
- req = container_of(async_req, struct ablkcipher_request, base);
+ req = ablkcipher_request_cast(async_req);
spin_unlock_irqrestore(&dev->lock, flags);
hifn_process_ready(req, -ENODEV);
@@ -2062,7 +2062,7 @@ static int hifn_process_queue(struct hifn_device *dev)
if (backlog)
backlog->complete(backlog, -EINPROGRESS);
- req = container_of(async_req, struct ablkcipher_request, base);
+ req = ablkcipher_request_cast(async_req);
err = hifn_handle_req(req);
if (err)