diff mbox series

scsi: dpt_i2o: Drop redundant spinlock initialization

Message ID 1652176024-3981-1-git-send-email-baihaowen@meizu.com (mailing list archive)
State Accepted
Headers show
Series scsi: dpt_i2o: Drop redundant spinlock initialization | expand

Commit Message

baihaowen May 10, 2022, 9:47 a.m. UTC
adpt_post_wait_lock has declared and initialized by DEFINE_SPINLOCK,
so we don't need to spin_lock_init again, drop it.

Signed-off-by: Haowen Bai <baihaowen@meizu.com>
---
 drivers/scsi/dpt_i2o.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Martin K. Petersen May 20, 2022, 1:09 a.m. UTC | #1
On Tue, 10 May 2022 17:47:03 +0800, Haowen Bai wrote:

> adpt_post_wait_lock has declared and initialized by DEFINE_SPINLOCK,
> so we don't need to spin_lock_init again, drop it.
> 
> 

Applied to 5.19/scsi-queue, thanks!

[1/1] scsi: dpt_i2o: Drop redundant spinlock initialization
      https://git.kernel.org/mkp/scsi/c/91fdd0788878
diff mbox series

Patch

diff --git a/drivers/scsi/dpt_i2o.c b/drivers/scsi/dpt_i2o.c
index 93227c04ef59..2e9155ba7408 100644
--- a/drivers/scsi/dpt_i2o.c
+++ b/drivers/scsi/dpt_i2o.c
@@ -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"