void function should not return void expression.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com --- v1/wd_ecc.c | 6 +++--- wd_aead.c | 4 ++-- wd_cipher.c | 4 ++-- wd_comp.c | 4 ++-- wd_dh.c | 4 ++-- wd_digest.c | 4 ++-- wd_ecc.c | 8 ++++---- wd_rsa.c | 4 ++-- 8 files changed, 19 insertions(+), 19 deletions(-)
diff --git a/v1/wd_ecc.c b/v1/wd_ecc.c index e6b771a..f5c76a8 100644 --- a/v1/wd_ecc.c +++ b/v1/wd_ecc.c @@ -214,7 +214,7 @@ static void br_free(struct wd_mm_br *br, void *va) return; }
- return br->free(br->usr, va); + br->free(br->usr, va); }
static __u32 get_hw_keysize(__u32 ksz) @@ -1699,7 +1699,7 @@ static void get_sign_out_params(struct wcrypto_ecc_out *out, void wcrypto_get_ecdsa_sign_out_params(struct wcrypto_ecc_out *out, struct wd_dtb **r, struct wd_dtb **s) { - return get_sign_out_params(out, r, s); + get_sign_out_params(out, r, s); }
@@ -2218,7 +2218,7 @@ void wcrypto_get_sm2_sign_out_params(struct wcrypto_ecc_out *out, struct wd_dtb **r, struct wd_dtb **s) { - return get_sign_out_params(out, r, s); + get_sign_out_params(out, r, s); }
struct wcrypto_ecc_out *wcrypto_new_sm2_kg_out(void *ctx) diff --git a/wd_aead.c b/wd_aead.c index a2b4622..cd1a82b 100644 --- a/wd_aead.c +++ b/wd_aead.c @@ -903,7 +903,7 @@ int wd_aead_env_init(struct wd_sched *sched)
void wd_aead_env_uninit(void) { - return wd_alg_env_uninit(&wd_aead_env_config, &wd_aead_ops); + wd_alg_env_uninit(&wd_aead_env_config, &wd_aead_ops); }
int wd_aead_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode) @@ -921,7 +921,7 @@ int wd_aead_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode)
void wd_aead_ctx_num_uninit(void) { - return wd_alg_env_uninit(&wd_aead_env_config, &wd_aead_ops); + wd_alg_env_uninit(&wd_aead_env_config, &wd_aead_ops); }
int wd_aead_get_env_param(__u32 node, __u32 type, __u32 mode, diff --git a/wd_cipher.c b/wd_cipher.c index 12c70fb..6a1662a 100644 --- a/wd_cipher.c +++ b/wd_cipher.c @@ -782,7 +782,7 @@ int wd_cipher_env_init(struct wd_sched *sched)
void wd_cipher_env_uninit(void) { - return wd_alg_env_uninit(&wd_cipher_env_config, &wd_cipher_ops); + wd_alg_env_uninit(&wd_cipher_env_config, &wd_cipher_ops); }
int wd_cipher_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode) @@ -800,7 +800,7 @@ int wd_cipher_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode)
void wd_cipher_ctx_num_uninit(void) { - return wd_alg_env_uninit(&wd_cipher_env_config, &wd_cipher_ops); + wd_alg_env_uninit(&wd_cipher_env_config, &wd_cipher_ops); }
int wd_cipher_get_env_param(__u32 node, __u32 type, __u32 mode, diff --git a/wd_comp.c b/wd_comp.c index ae140ad..4a22a80 100644 --- a/wd_comp.c +++ b/wd_comp.c @@ -883,7 +883,7 @@ int wd_comp_env_init(struct wd_sched *sched)
void wd_comp_env_uninit(void) { - return wd_alg_env_uninit(&wd_comp_env_config, &wd_comp_ops); + wd_alg_env_uninit(&wd_comp_env_config, &wd_comp_ops); }
int wd_comp_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode) @@ -906,7 +906,7 @@ int wd_comp_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode)
void wd_comp_ctx_num_uninit(void) { - return wd_alg_env_uninit(&wd_comp_env_config, &wd_comp_ops); + wd_alg_env_uninit(&wd_comp_env_config, &wd_comp_ops); }
int wd_comp_get_env_param(__u32 node, __u32 type, __u32 mode, diff --git a/wd_dh.c b/wd_dh.c index 080ba52..4b6a75d 100644 --- a/wd_dh.c +++ b/wd_dh.c @@ -645,7 +645,7 @@ int wd_dh_env_init(struct wd_sched *sched)
void wd_dh_env_uninit(void) { - return wd_alg_env_uninit(&wd_dh_env_config, &wd_dh_ops); + wd_alg_env_uninit(&wd_dh_env_config, &wd_dh_ops); }
int wd_dh_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode) @@ -663,7 +663,7 @@ int wd_dh_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode)
void wd_dh_ctx_num_uninit(void) { - return wd_alg_env_uninit(&wd_dh_env_config, &wd_dh_ops); + wd_alg_env_uninit(&wd_dh_env_config, &wd_dh_ops); }
int wd_dh_get_env_param(__u32 node, __u32 type, __u32 mode, diff --git a/wd_digest.c b/wd_digest.c index 92e7fb2..c3aface 100644 --- a/wd_digest.c +++ b/wd_digest.c @@ -776,7 +776,7 @@ int wd_digest_env_init(struct wd_sched *sched)
void wd_digest_env_uninit(void) { - return wd_alg_env_uninit(&wd_digest_env_config, &wd_digest_ops); + wd_alg_env_uninit(&wd_digest_env_config, &wd_digest_ops); }
int wd_digest_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode) @@ -794,7 +794,7 @@ int wd_digest_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode)
void wd_digest_ctx_num_uninit(void) { - return wd_alg_env_uninit(&wd_digest_env_config, &wd_digest_ops); + wd_alg_env_uninit(&wd_digest_env_config, &wd_digest_ops); }
int wd_digest_get_env_param(__u32 node, __u32 type, __u32 mode, diff --git a/wd_ecc.c b/wd_ecc.c index 7f142e2..3ddf2c0 100644 --- a/wd_ecc.c +++ b/wd_ecc.c @@ -1592,7 +1592,7 @@ static void get_sign_out_params(struct wd_ecc_out *out, void wd_sm2_get_sign_out_params(struct wd_ecc_out *out, struct wd_dtb **r, struct wd_dtb **s) { - return get_sign_out_params(out, r, s); + get_sign_out_params(out, r, s); }
static int set_sign_in_param(struct wd_ecc_sign_in *sin, @@ -2195,7 +2195,7 @@ struct wd_ecc_out *wd_ecdsa_new_sign_out(handle_t sess) void wd_ecdsa_get_sign_out_params(struct wd_ecc_out *out, struct wd_dtb **r, struct wd_dtb **s) { - return get_sign_out_params(out, r, s); + get_sign_out_params(out, r, s); }
struct wd_ecc_in *wd_ecdsa_new_verf_in(handle_t sess, @@ -2358,7 +2358,7 @@ int wd_ecc_env_init(struct wd_sched *sched)
void wd_ecc_env_uninit(void) { - return wd_alg_env_uninit(&wd_ecc_env_config, &wd_ecc_ops); + wd_alg_env_uninit(&wd_ecc_env_config, &wd_ecc_ops); }
int wd_ecc_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode) @@ -2376,7 +2376,7 @@ int wd_ecc_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode)
void wd_ecc_ctx_num_uninit(void) { - return wd_alg_env_uninit(&wd_ecc_env_config, &wd_ecc_ops); + wd_alg_env_uninit(&wd_ecc_env_config, &wd_ecc_ops); }
int wd_ecc_get_env_param(__u32 node, __u32 type, __u32 mode, diff --git a/wd_rsa.c b/wd_rsa.c index ac2106e..9e8c264 100644 --- a/wd_rsa.c +++ b/wd_rsa.c @@ -1247,7 +1247,7 @@ int wd_rsa_env_init(struct wd_sched *sched)
void wd_rsa_env_uninit(void) { - return wd_alg_env_uninit(&wd_rsa_env_config, &wd_rsa_ops); + wd_alg_env_uninit(&wd_rsa_env_config, &wd_rsa_ops); }
int wd_rsa_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode) @@ -1265,7 +1265,7 @@ int wd_rsa_ctx_num_init(__u32 node, __u32 type, __u32 num, __u8 mode)
void wd_rsa_ctx_num_uninit(void) { - return wd_alg_env_uninit(&wd_rsa_env_config, &wd_rsa_ops); + wd_alg_env_uninit(&wd_rsa_env_config, &wd_rsa_ops); }
int wd_rsa_get_env_param(__u32 node, __u32 type, __u32 mode,