diff mbox

[49/54] staging/rdma/hfi1: Remove unused variable nsbr

Message ID 20160203223729.5923.97150.stgit@scvm10.sc.intel.com (mailing list archive)
State Accepted
Headers show

Commit Message

Dennis Dalessandro Feb. 3, 2016, 10:37 p.m. UTC
From: Dean Luick <dean.luick@intel.com>

Remove unused nsbr count from PCIe Gen3 code

Reviewed-by: Stuart Summers <john.s.summers@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
---
 drivers/staging/rdma/hfi1/pcie.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/staging/rdma/hfi1/pcie.c b/drivers/staging/rdma/hfi1/pcie.c
index 3d0c2e2..5642d85 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;
@@ -989,12 +988,6 @@  int do_pcie_gen3_transition(struct hfi1_devdata *dd)
 	}
 
 	/*
-	 * A0 needs an additional SBR
-	 */
-	if (is_ax(dd))
-		nsbr++;
-
-	/*
 	 * Do the Gen3 transition.  Steps are those of the PCIe Gen3
 	 * recipe.
 	 */