aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEaswar Hariharan <easwar.hariharan@intel.com>2016-10-17 07:20:04 -0400
committerDoug Ledford <dledford@redhat.com>2016-11-15 16:16:44 -0500
commitf0f98f74c91c68502e97e0d5526aa4e81b40b28a (patch)
treed6aba371905e29a14e9d8a0f8f5f0f93b351c94e
parent26ea2544ddbe8855cb251e41ff3641c61655a15f (diff)
IB/hfi1: Delete unused lock
The lock is an unused vestige from qib. Remove it. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Easwar Hariharan <easwar.hariharan@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--drivers/infiniband/hw/hfi1/hfi.h2
-rw-r--r--drivers/infiniband/hw/hfi1/init.c1
2 files changed, 0 insertions, 3 deletions
diff --git a/drivers/infiniband/hw/hfi1/hfi.h b/drivers/infiniband/hw/hfi1/hfi.h
index d906cf08504f..cc87fd4e534b 100644
--- a/drivers/infiniband/hw/hfi1/hfi.h
+++ b/drivers/infiniband/hw/hfi1/hfi.h
@@ -593,8 +593,6 @@ struct hfi1_pportdata {
593 struct mutex hls_lock; 593 struct mutex hls_lock;
594 u32 host_link_state; 594 u32 host_link_state;
595 595
596 spinlock_t sdma_alllock ____cacheline_aligned_in_smp;
597
598 u32 lstate; /* logical link state */ 596 u32 lstate; /* logical link state */
599 597
600 /* these are the "32 bit" regs */ 598 /* these are the "32 bit" regs */
diff --git a/drivers/infiniband/hw/hfi1/init.c b/drivers/infiniband/hw/hfi1/init.c
index e27b65dbe293..0f82eebc4b9e 100644
--- a/drivers/infiniband/hw/hfi1/init.c
+++ b/drivers/infiniband/hw/hfi1/init.c
@@ -507,7 +507,6 @@ void hfi1_init_pportdata(struct pci_dev *pdev, struct hfi1_pportdata *ppd,
507 INIT_WORK(&ppd->qsfp_info.qsfp_work, qsfp_event); 507 INIT_WORK(&ppd->qsfp_info.qsfp_work, qsfp_event);
508 508
509 mutex_init(&ppd->hls_lock); 509 mutex_init(&ppd->hls_lock);
510 spin_lock_init(&ppd->sdma_alllock);
511 spin_lock_init(&ppd->qsfp_info.qsfp_lock); 510 spin_lock_init(&ppd->qsfp_info.qsfp_lock);
512 511
513 ppd->qsfp_info.ppd = ppd; 512 ppd->qsfp_info.ppd = ppd;