Commit af0c94af authored by YANG LI's avatar YANG LI Committed by Martin K. Petersen

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.comReported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Reviewed-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarYANG LI <abaci-bugfix@linux.alibaba.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent a2fca52e
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment