scsi: lpfc: Fix dynamic fw log enablement check
authorJames Smart <jsmart2021@gmail.com>
Tue, 5 Nov 2019 00:57:02 +0000 (16:57 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 6 Nov 2019 05:04:04 +0000 (00:04 -0500)
The recently posted patch had a typo that incorrectly tested the receiving
function.

Fix the typo (change == to !=)

Fixes: 95bfc6d8ad86 ("scsi: lpfc: Make FW logging dynamically configurable")
Link: https://lore.kernel.org/r/20191105005708.7399-6-jsmart2021@gmail.com
Signed-off-by: Dick Kennedy <dick.kennedy@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_attr.c

index 3f30bc0..e7f6581 100644 (file)
@@ -5981,7 +5981,7 @@ lpfc_ras_fwlog_buffsize_set(struct lpfc_hba  *phba, uint val)
        if (phba->cfg_ras_fwlog_buffsize == val)
                return 0;
 
-       if (phba->cfg_ras_fwlog_func == PCI_FUNC(phba->pcidev->devfn))
+       if (phba->cfg_ras_fwlog_func != PCI_FUNC(phba->pcidev->devfn))
                return -EINVAL;
 
        spin_lock_irq(&phba->hbalock);