提交 7580fc31 编写于 作者: D Dean Luick 提交者: Doug Ledford

staging/rdma/hfi1: Remove unused variable nsbr

Remove unused nsbr count from PCIe Gen3 code
Reviewed-by: NStuart Summers <john.s.summers@intel.com>
Signed-off-by: NDean Luick <dean.luick@intel.com>
Signed-off-by: NJubin John <jubin.john@intel.com>
Signed-off-by: NDoug Ledford <dledford@redhat.com>
上级 e154f127
...@@ -955,7 +955,6 @@ int do_pcie_gen3_transition(struct hfi1_devdata *dd) ...@@ -955,7 +955,6 @@ int do_pcie_gen3_transition(struct hfi1_devdata *dd)
uint default_pset; uint default_pset;
u16 target_vector, target_speed; u16 target_vector, target_speed;
u16 lnkctl2, vendor; u16 lnkctl2, vendor;
u8 nsbr = 1;
u8 div; u8 div;
const u8 (*eq)[3]; const u8 (*eq)[3];
int return_error = 0; int return_error = 0;
...@@ -988,12 +987,6 @@ int do_pcie_gen3_transition(struct hfi1_devdata *dd) ...@@ -988,12 +987,6 @@ int do_pcie_gen3_transition(struct hfi1_devdata *dd)
return 0; return 0;
} }
/*
* A0 needs an additional SBR
*/
if (is_ax(dd))
nsbr++;
/* /*
* Do the Gen3 transition. Steps are those of the PCIe Gen3 * Do the Gen3 transition. Steps are those of the PCIe Gen3
* recipe. * recipe.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册