From: kbuild test robot <lkp@xxxxxxxxx> 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@xxxxxxxxxxx> Signed-off-by: kbuild test robot <lkp@xxxxxxxxx> Signed-off-by: Julia Lawall <julia.lawall@xxxxxxx> --- 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(-) --- 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,