Skip to content

Commit 2b78aeb

Browse files
ebiggersherbertx
authored andcommitted
crypto: inside-secure - remove useless setting of type flags
Remove the unnecessary setting of CRYPTO_ALG_TYPE_SKCIPHER. Commit 2c95e6d ("crypto: skcipher - remove useless setting of type flags") took care of this everywhere else, but a few more instances made it into the tree at about the same time. Squash them before they get copy+pasted around again. This patch shouldn't change any actual behavior. Signed-off-by: Eric Biggers <ebiggers@google.com> Acked-by: Antoine Tenart <antoine.tenart@bootlin.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 3da2c1d commit 2b78aeb

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/crypto/inside-secure/safexcel_cipher.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -970,7 +970,7 @@ struct safexcel_alg_template safexcel_alg_cbc_des = {
970970
.cra_name = "cbc(des)",
971971
.cra_driver_name = "safexcel-cbc-des",
972972
.cra_priority = 300,
973-
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER | CRYPTO_ALG_ASYNC |
973+
.cra_flags = CRYPTO_ALG_ASYNC |
974974
CRYPTO_ALG_KERN_DRIVER_ONLY,
975975
.cra_blocksize = DES_BLOCK_SIZE,
976976
.cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
@@ -1010,7 +1010,7 @@ struct safexcel_alg_template safexcel_alg_ecb_des = {
10101010
.cra_name = "ecb(des)",
10111011
.cra_driver_name = "safexcel-ecb-des",
10121012
.cra_priority = 300,
1013-
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER | CRYPTO_ALG_ASYNC |
1013+
.cra_flags = CRYPTO_ALG_ASYNC |
10141014
CRYPTO_ALG_KERN_DRIVER_ONLY,
10151015
.cra_blocksize = DES_BLOCK_SIZE,
10161016
.cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
@@ -1074,7 +1074,7 @@ struct safexcel_alg_template safexcel_alg_cbc_des3_ede = {
10741074
.cra_name = "cbc(des3_ede)",
10751075
.cra_driver_name = "safexcel-cbc-des3_ede",
10761076
.cra_priority = 300,
1077-
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER | CRYPTO_ALG_ASYNC |
1077+
.cra_flags = CRYPTO_ALG_ASYNC |
10781078
CRYPTO_ALG_KERN_DRIVER_ONLY,
10791079
.cra_blocksize = DES3_EDE_BLOCK_SIZE,
10801080
.cra_ctxsize = sizeof(struct safexcel_cipher_ctx),
@@ -1114,7 +1114,7 @@ struct safexcel_alg_template safexcel_alg_ecb_des3_ede = {
11141114
.cra_name = "ecb(des3_ede)",
11151115
.cra_driver_name = "safexcel-ecb-des3_ede",
11161116
.cra_priority = 300,
1117-
.cra_flags = CRYPTO_ALG_TYPE_SKCIPHER | CRYPTO_ALG_ASYNC |
1117+
.cra_flags = CRYPTO_ALG_ASYNC |
11181118
CRYPTO_ALG_KERN_DRIVER_ONLY,
11191119
.cra_blocksize = DES3_EDE_BLOCK_SIZE,
11201120
.cra_ctxsize = sizeof(struct safexcel_cipher_ctx),

0 commit comments

Comments
 (0)