]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: skcipher - remove useless setting of type flags
authorEric Biggers <ebiggers@google.com>
Sat, 30 Jun 2018 22:16:15 +0000 (15:16 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sun, 8 Jul 2018 16:30:27 +0000 (00:30 +0800)
commit917a4da403389c31b8bbec6a03d93551804cc4bc
treefda4952611a0d2404439b0c316f8a57474d5207b
parent40404fdd082afe69c16a0d9a908f4eb825ca18df
crypto: skcipher - remove useless setting of type flags

Some skcipher algorithms set .cra_flags = CRYPTO_ALG_TYPE_SKCIPHER.  But
this is redundant with the C structure type ('struct skcipher_alg'), and
crypto_register_skcipher() already sets the type flag automatically,
clearing any type flag that was already there.  Apparently the useless
assignment has just been copy+pasted around.

So, remove the useless assignment from all the skcipher algorithms.

This patch shouldn't change any actual behavior.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amcc/crypto4xx_core.c
drivers/crypto/axis/artpec6_crypto.c
drivers/crypto/ccree/cc_cipher.c
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/sunxi-ss/sun4i-ss-core.c