mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 06:33:07 +00:00
scsi: lpfc: Simplify bool comparison
Fix the following coccicheck warning: ./drivers/scsi/lpfc/lpfc_bsg.c:5392:5-29: WARNING: Comparison to bool Link: https://lore.kernel.org/r/1610439893-64872-1-git-send-email-abaci-bugfix@linux.alibaba.com Reported-by: Abaci Robot <abaci@linux.alibaba.com> Reviewed-by: James Smart <james.smart@broadcom.com> Signed-off-by: YANG LI <abaci-bugfix@linux.alibaba.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
a2fca52ee6
commit
af0c94afc0
1 changed files with 2 additions and 2 deletions
|
@ -5376,9 +5376,9 @@ lpfc_check_fwlog_support(struct lpfc_hba *phba)
|
|||
|
||||
ras_fwlog = &phba->ras_fwlog;
|
||||
|
||||
if (ras_fwlog->ras_hwsupport == false)
|
||||
if (!ras_fwlog->ras_hwsupport)
|
||||
return -EACCES;
|
||||
else if (ras_fwlog->ras_enabled == false)
|
||||
else if (!ras_fwlog->ras_enabled)
|
||||
return -EPERM;
|
||||
else
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue