From 6c97b5aa4336962aed99100f1a6888d60b01c17d Mon Sep 17 00:00:00 2001 From: Weihang Li <liweihang@hisilicon.com> Date: Mon, 8 Jul 2019 10:31:27 +0800 Subject: [PATCH] RDMA/hns: remove redundant print in hns_roce_v2_ceq_int() driver inclusion category: bugfix bugzilla: NA CVE: NA There is no need to tell users when eq->cons_index is overflow, we just set it back to zero. Feature or Bugfix: Bugfix Signed-off-by: Weihang Li <liweihang@hisilicon.com> Reviewed-by: liyangyang20 <liyangyang20@huawei.com> Reviewed-by: liuyixian <liuyixian@huawei.com> Reviewed-by: Yang Yingliang <yangyingliang@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/infiniband/hw/hns/hns_roce_hw_v2.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c index 3e5b7c1d6a43..103e182a3f63 100644 --- a/drivers/infiniband/hw/hns/hns_roce_hw_v2.c +++ b/drivers/infiniband/hw/hns/hns_roce_hw_v2.c @@ -5525,7 +5525,6 @@ static struct hns_roce_ceqe *next_ceqe_sw_v2(struct hns_roce_eq *eq) static int hns_roce_v2_ceq_int(struct hns_roce_dev *hr_dev, struct hns_roce_eq *eq) { - struct device *dev = hr_dev->dev; struct hns_roce_ceqe *ceqe; int ceqe_found = 0; u32 ci_max; @@ -5549,10 +5548,8 @@ static int hns_roce_v2_ceq_int(struct hns_roce_dev *hr_dev, ceqe_found = 1; ci_max = 2 * eq->entries - 1; - if (eq->cons_index > ci_max) { - dev_info(dev, "ceq cons_index overflow, set back to 0.\n"); + if (eq->cons_index > ci_max) eq->cons_index = 0; - } rdfx_inc_ceqe_cnt(hr_dev, eq->eqn); } -- GitLab