mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
scsi: qedf: Simplify bool comparison
Fix the following coccicheck warning: ./drivers/scsi/qedf/qedf_main.c:3716:5-31: WARNING: Comparison to bool Link: https://lore.kernel.org/r/[email protected] Reported-by: Abaci Robot <[email protected]> Acked-by: Saurav Kashyap <[email protected]> Signed-off-by: YANG LI <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
committed by
Martin K. Petersen
parent
e4da5feb09
commit
ac341c2d2f
@@ -3713,7 +3713,7 @@ static void __qedf_remove(struct pci_dev *pdev, int mode)
|
||||
else
|
||||
fc_fabric_logoff(qedf->lport);
|
||||
|
||||
if (qedf_wait_for_upload(qedf) == false)
|
||||
if (!qedf_wait_for_upload(qedf))
|
||||
QEDF_ERR(&qedf->dbg_ctx, "Could not upload all sessions.\n");
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
|
||||
Reference in New Issue
Block a user