summaryrefslogtreecommitdiff
path: root/drivers/crypto/picoxcell_crypto.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2015-12-28 16:53:07 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-12-29 16:32:44 +0300
commit48d627648141479c8be8acd110191072e24eba25 (patch)
tree42fc98c4a45be12d0757b0336f82c59875af6d52 /drivers/crypto/picoxcell_crypto.c
parent2a5de720dcecbc7ba998bc1ae8f7b9cd7cb81654 (diff)
downloadlinux-48d627648141479c8be8acd110191072e24eba25.tar.xz
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/picoxcell_crypto.c')
-rw-r--r--drivers/crypto/picoxcell_crypto.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/picoxcell_crypto.c b/drivers/crypto/picoxcell_crypto.c
index 15b5e39b4924..3b1c7ecf078f 100644
--- a/drivers/crypto/picoxcell_crypto.c
+++ b/drivers/crypto/picoxcell_crypto.c
@@ -856,8 +856,7 @@ static int spacc_ablk_need_fallback(struct spacc_req *req)
static void spacc_ablk_complete(struct spacc_req *req)
{
- struct ablkcipher_request *ablk_req =
- container_of(req->req, struct ablkcipher_request, base);
+ struct ablkcipher_request *ablk_req = ablkcipher_request_cast(req->req);
if (ablk_req->src != ablk_req->dst) {
spacc_free_ddt(req, req->src_ddt, req->src_addr, ablk_req->src,