From 7580fc31dfbfcacab2a3243342d4b5de4b494cbf Mon Sep 17 00:00:00 2001 From: Dean Luick Date: Wed, 3 Feb 2016 14:37:32 -0800 Subject: [PATCH] staging/rdma/hfi1: Remove unused variable nsbr Remove unused nsbr count from PCIe Gen3 code Reviewed-by: Stuart Summers Signed-off-by: Dean Luick Signed-off-by: Jubin John Signed-off-by: Doug Ledford --- drivers/staging/rdma/hfi1/pcie.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/staging/rdma/hfi1/pcie.c b/drivers/staging/rdma/hfi1/pcie.c index 3d0c2e21d3e1..5642d859fc7c 100644 --- a/drivers/staging/rdma/hfi1/pcie.c +++ b/drivers/staging/rdma/hfi1/pcie.c @@ -955,7 +955,6 @@ int do_pcie_gen3_transition(struct hfi1_devdata *dd) uint default_pset; u16 target_vector, target_speed; u16 lnkctl2, vendor; - u8 nsbr = 1; u8 div; const u8 (*eq)[3]; int return_error = 0; @@ -988,12 +987,6 @@ int do_pcie_gen3_transition(struct hfi1_devdata *dd) return 0; } - /* - * A0 needs an additional SBR - */ - if (is_ax(dd)) - nsbr++; - /* * Do the Gen3 transition. Steps are those of the PCIe Gen3 * recipe. -- GitLab