The variable 'recv_num' is no longer used, remove redundant add 1;
Signed-off-by: Weili Qian qianweili@huawei.com --- drv/hisi_qm_udrv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drv/hisi_qm_udrv.c b/drv/hisi_qm_udrv.c index 48cd8c0..b1cb4f2 100644 --- a/drv/hisi_qm_udrv.c +++ b/drv/hisi_qm_udrv.c @@ -545,7 +545,7 @@ int hisi_qm_recv(handle_t h_qp, void *resp, __u16 expect, __u16 *count) recv_num++; }
- *count = recv_num++; + *count = recv_num; if (unlikely(wd_ioread32(q_info->ds_rx_base) == 1)) { WD_DEV_ERR(qp->h_ctx, "wd queue hw error happened in qm receive!\n"); return -WD_HW_EACCESS;