diff options
author | Phil Sutter <phil.sutter@viprinet.com> | 2011-05-05 09:28:57 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-05-11 01:06:13 -0400 |
commit | 042e9e73561aa406b872f3e310bdc9477c379cb3 (patch) | |
tree | 8f74ee091c98369a186edf844cd89d4daf62f7af /drivers/crypto | |
parent | de2954d66408da3ae34effda777bb564fd17781b (diff) |
crypto: mv_cesa - use ablkcipher_request_cast instead of the manual container_of
Signed-off-by: Phil Sutter <phil.sutter@viprinet.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/mv_cesa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/crypto/mv_cesa.c b/drivers/crypto/mv_cesa.c index c99305afa58a..c443246ca4b1 100644 --- a/drivers/crypto/mv_cesa.c +++ b/drivers/crypto/mv_cesa.c | |||
@@ -603,9 +603,7 @@ static int queue_manag(void *data) | |||
603 | if (async_req->tfm->__crt_alg->cra_type != | 603 | if (async_req->tfm->__crt_alg->cra_type != |
604 | &crypto_ahash_type) { | 604 | &crypto_ahash_type) { |
605 | struct ablkcipher_request *req = | 605 | struct ablkcipher_request *req = |
606 | container_of(async_req, | 606 | ablkcipher_request_cast(async_req); |
607 | struct ablkcipher_request, | ||
608 | base); | ||
609 | mv_start_new_crypt_req(req); | 607 | mv_start_new_crypt_req(req); |
610 | } else { | 608 | } else { |
611 | struct ahash_request *req = | 609 | struct ahash_request *req = |