mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-09 14:50:19 +00:00
scsi: dpt_i2o: Drop redundant spinlock initialization
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>
This commit is contained in:
parent
fc65df48c8
commit
91fdd07888
@ -1000,7 +1000,6 @@ static int adpt_install_hba(struct scsi_host_template* sht, struct pci_dev* pDev
|
|||||||
|
|
||||||
// Initializing the spinlocks
|
// Initializing the spinlocks
|
||||||
spin_lock_init(&pHba->state_lock);
|
spin_lock_init(&pHba->state_lock);
|
||||||
spin_lock_init(&adpt_post_wait_lock);
|
|
||||||
|
|
||||||
if(raptorFlag == 0){
|
if(raptorFlag == 0){
|
||||||
printk(KERN_INFO "Adaptec I2O RAID controller"
|
printk(KERN_INFO "Adaptec I2O RAID controller"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user