Linux-SCSI Archive mirror
 help / color / mirror / Atom feed
* [PATCH] qedf: Fix uninitalize warning from kernel test robot.
@ 2024-04-15  7:36 Saurav Kashyap
  2024-04-25  1:12 ` Martin K. Petersen
  0 siblings, 1 reply; 2+ messages in thread
From: Saurav Kashyap @ 2024-04-15  7:36 UTC (permalink / raw
  To: martin.petersen
  Cc: GR-QLogic-Storage-Upstream, linux-scsi, Saurav Kashyap,
	kernel test robot

Fixes uininitalize qedf warning.

Signed-off-by: Saurav Kashyap <skashyap@marvell.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202403160959.uNobO4UE-lkp@intel.com/
---
 drivers/scsi/qedf/qedf_main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c
index d4563d28d98f..b97a8712d3f6 100644
--- a/drivers/scsi/qedf/qedf_main.c
+++ b/drivers/scsi/qedf/qedf_main.c
@@ -919,14 +919,14 @@ void qedf_ctx_soft_reset(struct fc_lport *lport)
 	struct qedf_ctx *qedf;
 	struct qed_link_output if_link;
 
+	qedf = lport_priv(lport);
+
 	if (lport->vport) {
 		clear_bit(QEDF_STAG_IN_PROGRESS, &qedf->flags);
 		printk_ratelimited("Cannot issue host reset on NPIV port.\n");
 		return;
 	}
 
-	qedf = lport_priv(lport);
-
 	qedf->flogi_pending = 0;
 	/* For host reset, essentially do a soft link up/down */
 	atomic_set(&qedf->link_state, QEDF_LINK_DOWN);
-- 
2.23.1


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

* Re: [PATCH] qedf: Fix uninitalize warning from kernel test robot.
  2024-04-15  7:36 [PATCH] qedf: Fix uninitalize warning from kernel test robot Saurav Kashyap
@ 2024-04-25  1:12 ` Martin K. Petersen
  0 siblings, 0 replies; 2+ messages in thread
From: Martin K. Petersen @ 2024-04-25  1:12 UTC (permalink / raw
  To: Saurav Kashyap
  Cc: martin.petersen, GR-QLogic-Storage-Upstream, linux-scsi,
	kernel test robot


Saurav,

> Fixes uininitalize qedf warning.

Please send a v2 of the series with this fix applied.

Thanks!

-- 
Martin K. Petersen	Oracle Linux Engineering

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

end of thread, other threads:[~2024-04-25  1:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-15  7:36 [PATCH] qedf: Fix uninitalize warning from kernel test robot Saurav Kashyap
2024-04-25  1:12 ` Martin K. Petersen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).