1
0

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>
Este cometimento está contido em:
Geliang Tang
2015-12-28 21:53:07 +08:00
cometido por Herbert Xu
ascendente 2a5de720dc
cometimento 48d6276481
2 ficheiros modificados com 3 adições e 4 eliminações

Ver ficheiro

@@ -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,