提交 683857e3 编写于 作者: W Weihang Li 提交者: Xie XiuQi

RDMA/hns: remove a redundant assignment

driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

The variable eq->arm_st will be assigned the value of eq_arm_st at last,
so it's meaningless to set it to HNS_ROCE_V2_EQ_ALWAYS_ARMED.

Feature or Bugfix: Bugfix
Signed-off-by: NWeihang Li <liweihang@hisilicon.com>
Reviewed-by: Nliuyixian <liuyixian@huawei.com>
Reviewed-by: NYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 f2ccd5c6
...@@ -5908,7 +5908,6 @@ static void hns_roce_config_eqc(struct hns_roce_dev *hr_dev, ...@@ -5908,7 +5908,6 @@ static void hns_roce_config_eqc(struct hns_roce_dev *hr_dev,
eq->cons_index = 0; eq->cons_index = 0;
eq->over_ignore = HNS_ROCE_V2_EQ_OVER_IGNORE_0; eq->over_ignore = HNS_ROCE_V2_EQ_OVER_IGNORE_0;
eq->coalesce = HNS_ROCE_V2_EQ_COALESCE_0; eq->coalesce = HNS_ROCE_V2_EQ_COALESCE_0;
eq->arm_st = HNS_ROCE_V2_EQ_ALWAYS_ARMED;
eq->eqe_ba_pg_sz = hr_dev->caps.eqe_ba_pg_sz; eq->eqe_ba_pg_sz = hr_dev->caps.eqe_ba_pg_sz;
eq->eqe_buf_pg_sz = hr_dev->caps.eqe_buf_pg_sz; eq->eqe_buf_pg_sz = hr_dev->caps.eqe_buf_pg_sz;
eq->shift = ilog2((unsigned int)eq->entries); eq->shift = ilog2((unsigned int)eq->entries);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册