]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
scsi: qla4xxx: drop redundant init_completion
authorNicholas Mc Guire <der.herr@hofr.at>
Wed, 22 Mar 2017 10:44:22 +0000 (11:44 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 6 Apr 2017 17:14:32 +0000 (13:14 -0400)
The redundant init_completion() here seems to be a cut&past error as
struct scsi_qla_host only has 4 completion elements to initialize, thus
the duplicate init_completion(disable_acb_comp) is simply removed.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qla4xxx/ql4_os.c

index ac52150d1569a830adfddeb8bbfa5e153feda9e9..64c6fa563fdb7562f6e33d83357879d8e572940e 100644 (file)
@@ -8664,7 +8664,6 @@ static int qla4xxx_probe_adapter(struct pci_dev *pdev,
        init_completion(&ha->disable_acb_comp);
        init_completion(&ha->idc_comp);
        init_completion(&ha->link_up_comp);
-       init_completion(&ha->disable_acb_comp);
 
        spin_lock_init(&ha->hardware_lock);
        spin_lock_init(&ha->work_lock);