crypto: cryptod - use crypto_skcipher_type() for getting skcipher type
authorAlexander Kuleshov <kuleshovmail@gmail.com>
Wed, 25 Nov 2015 17:48:28 +0000 (23:48 +0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 27 Nov 2015 13:22:18 +0000 (21:22 +0800)
commitc012a79d0ce95bd8488a5a44cd8c00c275774518
tree6ac2345732134439404f39fdcc28e0cd6355930c
parent433cd2c617bfbac27a02e40fbcce1713c84ce441
crypto: cryptod - use crypto_skcipher_type() for getting skcipher type

The <linux/crypto.h> provides inline function - crypto_skcipher_type().
Let's use it in the cryptd_alloc_ablkcipher() instead of direct calculation.

Signed-off-by: Alexander Kuleshov <kuleshovmail@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/cryptd.c