Array name should be used instead of taking address of array.
Signed-off-by: Wenkai Lin linwenkai6@hisilicon.com --- drv/hisi_hpre.c | 2 +- wd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drv/hisi_hpre.c b/drv/hisi_hpre.c index 4d21788..83b2a7d 100644 --- a/drv/hisi_hpre.c +++ b/drv/hisi_hpre.c @@ -1777,7 +1777,7 @@ static int sm2_enc_send(handle_t ctx, struct wd_ecc_msg *msg) goto fail_fill_sqe; }
- ret = hisi_qm_send(h_qp, &hw_msg, SM2_SQE_NUM, &send_cnt); + ret = hisi_qm_send(h_qp, hw_msg, SM2_SQE_NUM, &send_cnt); if (unlikely(ret)) goto fail_fill_sqe;
diff --git a/wd.c b/wd.c index c2559a4..401dd9d 100644 --- a/wd.c +++ b/wd.c @@ -351,7 +351,7 @@ out:
static void wd_ctx_init_qfrs_offs(struct wd_ctx_h *ctx) { - memcpy(&ctx->qfrs_offs, &ctx->dev->qfrs_offs, + memcpy(ctx->qfrs_offs, ctx->dev->qfrs_offs, sizeof(ctx->qfrs_offs)); }