Skip to content

Commit

Permalink
crypto: mv_cesa - use ablkcipher_request_cast instead of the manual c…
Browse files Browse the repository at this point in the history
…ontainer_of

Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Phil Sutter authored and Herbert Xu committed May 11, 2011
1 parent de2954d commit 042e9e7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions drivers/crypto/mv_cesa.c
Original file line number Diff line number Diff line change
Expand Up @@ -603,9 +603,7 @@ static int queue_manag(void *data)
if (async_req->tfm->__crt_alg->cra_type !=
&crypto_ahash_type) {
struct ablkcipher_request *req =
container_of(async_req,
struct ablkcipher_request,
base);
ablkcipher_request_cast(async_req);
mv_start_new_crypt_req(req);
} else {
struct ahash_request *req =
Expand Down

0 comments on commit 042e9e7

Please sign in to comment.