From 16800a92f326560006d0480faacde3cf1d5d6cb2 Mon Sep 17 00:00:00 2001
From: Weili Qian <qianweili@huawei.com>
Date: Sat, 23 Jul 2022 10:49:02 +0800
Subject: [PATCH 176/183] drv/qm: remove redundant add 1

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 7f26e52..6459ffa 100644
--- a/drv/hisi_qm_udrv.c
+++ b/drv/hisi_qm_udrv.c
@@ -546,7 +546,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;
-- 
2.27.0

