]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
IB/hfi1: Delete unused lock
authorEaswar Hariharan <easwar.hariharan@intel.com>
Mon, 17 Oct 2016 11:20:04 +0000 (04:20 -0700)
committerDoug Ledford <dledford@redhat.com>
Tue, 15 Nov 2016 21:16:44 +0000 (16:16 -0500)
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>
drivers/infiniband/hw/hfi1/hfi.h
drivers/infiniband/hw/hfi1/init.c

index d906cf08504fcc8479b3dad1e68fc616b4325c4a..cc87fd4e534bbefd1235be4c010c5df4be9c065c 100644 (file)
@@ -593,8 +593,6 @@ struct hfi1_pportdata {
        struct mutex hls_lock;
        u32 host_link_state;
 
-       spinlock_t            sdma_alllock ____cacheline_aligned_in_smp;
-
        u32 lstate;     /* logical link state */
 
        /* these are the "32 bit" regs */
index e27b65dbe29342456ec5eef71b69f6cd11f06560..0f82eebc4b9e62ce016ad51a4eb81e838ccd1e28 100644 (file)
@@ -507,7 +507,6 @@ void hfi1_init_pportdata(struct pci_dev *pdev, struct hfi1_pportdata *ppd,
        INIT_WORK(&ppd->qsfp_info.qsfp_work, qsfp_event);
 
        mutex_init(&ppd->hls_lock);
-       spin_lock_init(&ppd->sdma_alllock);
        spin_lock_init(&ppd->qsfp_info.qsfp_lock);
 
        ppd->qsfp_info.ppd = ppd;