提交 af0c94af 编写于 作者: Y YANG LI 提交者: 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: NAbaci Robot <abaci@linux.alibaba.com>
Reviewed-by: NJames Smart <james.smart@broadcom.com>
Signed-off-by: NYANG LI <abaci-bugfix@linux.alibaba.com>
Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com>
上级 a2fca52e
...@@ -5376,9 +5376,9 @@ lpfc_check_fwlog_support(struct lpfc_hba *phba) ...@@ -5376,9 +5376,9 @@ lpfc_check_fwlog_support(struct lpfc_hba *phba)
ras_fwlog = &phba->ras_fwlog; ras_fwlog = &phba->ras_fwlog;
if (ras_fwlog->ras_hwsupport == false) if (!ras_fwlog->ras_hwsupport)
return -EACCES; return -EACCES;
else if (ras_fwlog->ras_enabled == false) else if (!ras_fwlog->ras_enabled)
return -EPERM; return -EPERM;
else else
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册