summaryrefslogtreecommitdiffstats
path: root/drivers/crypto
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-05-05 15:28:57 +0200
committerHerbert Xu <herbert@gondor.apana.org.au>2011-05-11 15:06:13 +1000
commit042e9e73561aa406b872f3e310bdc9477c379cb3 (patch)
tree8f74ee091c98369a186edf844cd89d4daf62f7af /drivers/crypto
parentde2954d66408da3ae34effda777bb564fd17781b (diff)
downloadblackbird-obmc-linux-042e9e73561aa406b872f3e310bdc9477c379cb3.tar.gz
blackbird-obmc-linux-042e9e73561aa406b872f3e310bdc9477c379cb3.zip
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.c4
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)
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 =
OpenPOWER on IntegriCloud