All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] scsi: qedi: remove Comparison of 0/1 to bool variable
@ 2020-04-30 12:17 Jason Yan
  2020-05-06  4:43 ` [EXT] " Manish Rangankar
  2020-05-08  2:54 ` Martin K. Petersen
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Yan @ 2020-04-30 12:17 UTC (permalink / raw)
  To: QLogic-Storage-Upstream, jejb, martin.petersen, mrangankar,
	linux-scsi, linux-kernel
  Cc: Jason Yan

Fix the following coccicheck warning:

drivers/scsi/qedi/qedi_main.c:1309:5-25: WARNING: Comparison of 0/1 to
bool variable
drivers/scsi/qedi/qedi_main.c:1315:5-25: WARNING: Comparison of 0/1 to
bool variable

Signed-off-by: Jason Yan <yanaijie@huawei.com>
---
 drivers/scsi/qedi/qedi_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qedi/qedi_main.c b/drivers/scsi/qedi/qedi_main.c
index 4dd965860c98..46584e16d635 100644
--- a/drivers/scsi/qedi/qedi_main.c
+++ b/drivers/scsi/qedi/qedi_main.c
@@ -1306,13 +1306,13 @@ static irqreturn_t qedi_msix_handler(int irq, void *dev_id)
 			  "process already running\n");
 	}
 
-	if (qedi_fp_has_work(fp) == 0)
+	if (!qedi_fp_has_work(fp))
 		qed_sb_update_sb_idx(fp->sb_info);
 
 	/* Check for more work */
 	rmb();
 
-	if (qedi_fp_has_work(fp) == 0)
+	if (!qedi_fp_has_work(fp))
 		qed_sb_ack(fp->sb_info, IGU_INT_ENABLE, 1);
 	else
 		goto process_again;
-- 
2.21.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-08  2:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-30 12:17 [PATCH] scsi: qedi: remove Comparison of 0/1 to bool variable Jason Yan
2020-05-06  4:43 ` [EXT] " Manish Rangankar
2020-05-08  2:54 ` Martin K. Petersen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.