1.Adding logging API for rdma-core. 2.Adding hns cleanups in rdma-core v37. Signed-off-by: zhengfeng luo <luozhengfeng@h-partners.com> Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
34 lines
1.1 KiB
Diff
34 lines
1.1 KiB
Diff
From e451dbaff5f0dd1715b6411169e970021cd43f4f Mon Sep 17 00:00:00 2001
|
|
From: Yixing Liu <liuyixing1@huawei.com>
|
|
Date: Tue, 9 Nov 2021 20:40:59 +0800
|
|
Subject: libhns: Remove redundant variable initialization
|
|
|
|
The variable of owner_bit has been assigned before the reference, so there
|
|
is no need to initialize.
|
|
|
|
Signed-off-by: Yixing Liu <liuyixing1@huawei.com>
|
|
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
|
|
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
|
|
---
|
|
providers/hns/hns_roce_u_hw_v2.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/providers/hns/hns_roce_u_hw_v2.c b/providers/hns/hns_roce_u_hw_v2.c
|
|
index d0df51a..5fb6477 100644
|
|
--- a/providers/hns/hns_roce_u_hw_v2.c
|
|
+++ b/providers/hns/hns_roce_u_hw_v2.c
|
|
@@ -1399,9 +1399,9 @@ static void __hns_roce_v2_cq_clean(struct hns_roce_cq *cq, uint32_t qpn,
|
|
{
|
|
int nfreed = 0;
|
|
bool is_recv_cqe;
|
|
+ uint8_t owner_bit;
|
|
uint16_t wqe_index;
|
|
uint32_t prod_index;
|
|
- uint8_t owner_bit = 0;
|
|
struct hns_roce_v2_cqe *cqe, *dest;
|
|
struct hns_roce_context *ctx = to_hr_ctx(cq->ibv_cq.context);
|
|
|
|
--
|
|
2.27.0
|
|
|