]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: skcipher - Don't use __crypto_dequeue_request()
authorMarek Vasut <marex@denx.de>
Mon, 26 May 2014 16:51:48 +0000 (18:51 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Jun 2014 13:26:05 +0000 (21:26 +0800)
commiteca8d3d15a48cfba25c2e9bab1e95be543008ba6
tree1d81e9039df71035030007149c2e157ac0572194
parentbfb35949d261bc2785a7c3c85a637be5c392e756
crypto: skcipher - Don't use __crypto_dequeue_request()

Use skcipher_givcrypt_cast(crypto_dequeue_request(queue)) instead, which
does the same thing in much cleaner way. The skcipher_givcrypt_cast()
actually uses container_of() instead of messing around with offsetof()
too.

Signed-off-by: Marek Vasut <marex@denx.de>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Cc: Pantelis Antoniou <panto@antoniou-consulting.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/internal/skcipher.h