From: James Smart <jsmart2021@gmail.com>
Date: Mon, 4 Nov 2019 16:57:02 -0800
Subject: scsi: lpfc: Fix dynamic fw log enablement check
Patch-mainline: v5.5-rc1
Git-commit: dda5bdf074da3782ff9e785ee50cd2a3f214d498
References: bsc#1154601
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>
Acked-by: Daniel Wagner <dwagner@suse.de>
---
drivers/scsi/lpfc/lpfc_attr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/drivers/scsi/lpfc/lpfc_attr.c
+++ b/drivers/scsi/lpfc/lpfc_attr.c
@@ -5940,7 +5940,7 @@ lpfc_ras_fwlog_buffsize_set(struct lpfc_
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);