diff mbox series

qedf: fix itnull.cocci warnings

Message ID alpine.DEB.2.21.1903052218170.2594@hadrien (mailing list archive)
State Deferred
Headers show
Series qedf: fix itnull.cocci warnings | expand

Commit Message

Julia Lawall March 5, 2019, 9:19 p.m. UTC
From: kbuild test robot <lkp@intel.com>

Iterator variable bound on line 800 cannot be NULL

Generated by: scripts/coccinelle/iterators/itnull.cocci

Fixes: 9d8755adeaf0 ("qedf: Wait for upload and link down processing during soft ctx reset.")
CC: Chad Dupuis <cdupuis@marvell.com>
Signed-off-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Julia Lawall <julia.lawall@lip6.fr>
---

url:    https://github.com/0day-ci/linux/commits/Saurav-Kashyap/qedf-Misc-fixes-for-the-driver/20190305-205913
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
:::::: branch date: 8 hours ago
:::::: commit date: 8 hours ago

Please take the patch only if it's a positive warning. Thanks!

 qedf_main.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -798,7 +798,7 @@  bool qedf_wait_for_upload(struct qedf_ct

 	rcu_read_lock();
 	list_for_each_entry_rcu(fcport, &qedf->fcports, peers) {
-		if (fcport && test_bit(QEDF_RPORT_SESSION_READY,
+		if (test_bit(QEDF_RPORT_SESSION_READY,
 				       &fcport->flags)) {
 			if (fcport->rdata)
 				QEDF_ERR(&qedf->dbg_ctx,