From: Phil Sutter Date: Thu, 5 May 2011 13:28:57 +0000 (+0200) Subject: crypto: mv_cesa - use ablkcipher_request_cast instead of the manual container_of X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=042e9e73561aa406b872f3e310bdc9477c379cb3;p=linux-beck.git crypto: mv_cesa - use ablkcipher_request_cast instead of the manual container_of Signed-off-by: Phil Sutter Signed-off-by: Herbert Xu --- 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 =