[PATCH -next] crypto: cpt - simplify the return expression of cav_register_algs

2020-09-21 Thread Liu Shixin
Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/crypto/cavium/cpt/cptvf_algs.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/crypto/cavium/cpt/cptvf_algs.c b/drivers/crypto/cavium/cpt/cptvf_algs.c index 5af0dc2a8909..ce3b91c612f0

[PATCH -next] crypto: qat - convert to use DEFINE_SEQ_ATTRIBUTE macro

2020-09-15 Thread Liu Shixin
Use DEFINE_SEQ_ATTRIBUTE macro to simplify the code. Signed-off-by: Liu Shixin --- drivers/crypto/qat/qat_common/adf_cfg.c | 19 + .../qat/qat_common/adf_transport_debug.c | 42 ++- 2 files changed, 5 insertions(+), 56 deletions(-) diff --git a/drivers/crypto

[PATCH -next] crypto: atmel-aes - convert to use be32_add_cpu()

2020-09-13 Thread Liu Shixin
Convert cpu_to_be32(be32_to_cpu(E1) + E2) to use be32_add_cpu(). Signed-off-by: Liu Shixin --- drivers/crypto/atmel-aes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/atmel-aes.c b/drivers/crypto/atmel-aes.c index a6e14491e080..b1d286004295 100644 --- a