crypto: nitrox - remove cra_type reference to ablkcipher
authorArd Biesheuvel <ardb@kernel.org>
Sat, 9 Nov 2019 17:09:36 +0000 (18:09 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 17 Nov 2019 01:02:46 +0000 (09:02 +0800)
Setting the cra_type field is not necessary for skciphers, and ablkcipher
will be removed, so drop the assignment from the nitrox driver.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/nitrox/nitrox_skcipher.c

index ec3aaad..97af4d5 100644 (file)
@@ -493,7 +493,6 @@ static struct skcipher_alg nitrox_skciphers[] = { {
                .cra_blocksize = AES_BLOCK_SIZE,
                .cra_ctxsize = sizeof(struct nitrox_crypto_ctx),
                .cra_alignmask = 0,
-               .cra_type = &crypto_ablkcipher_type,
                .cra_module = THIS_MODULE,
        },
        .min_keysize = AES_MIN_KEY_SIZE,