scsi: dpt_i2o: Drop redundant spinlock initialization
authorHaowen Bai <baihaowen@meizu.com>
Tue, 10 May 2022 09:47:03 +0000 (17:47 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 20 May 2022 00:16:27 +0000 (20:16 -0400)
adpt_post_wait_lock was declared and initialized by DEFINE_SPINLOCK so we
don't need to call spin_lock_init(). Drop the call.

Link: https://lore.kernel.org/r/1652176024-3981-1-git-send-email-baihaowen@meizu.com
Signed-off-by: Haowen Bai <baihaowen@meizu.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/dpt_i2o.c

index 93227c04ef59c2988784295cdf853f08720bc52f..2e9155ba7408ae1597152c157f3254af379d97e0 100644 (file)
@@ -1000,7 +1000,6 @@ static int adpt_install_hba(struct scsi_host_template* sht, struct pci_dev* pDev
 
        // Initializing the spinlocks
        spin_lock_init(&pHba->state_lock);
-       spin_lock_init(&adpt_post_wait_lock);
 
        if(raptorFlag == 0){
                printk(KERN_INFO "Adaptec I2O RAID controller"