diff mbox series

hpsa-correct-static-checker-issue-in-reset-handler

Message ID 155804614564.4757.14771886984205910539.stgit@brunhilda (mailing list archive)
State Superseded
Headers show
Series hpsa-correct-static-checker-issue-in-reset-handler | expand

Commit Message

Don Brace May 16, 2019, 10:35 p.m. UTC
- correct static checker issue in patch
  hpsa-correct-device-resets that is pending in
  Martin Peterson's 5.3/scsi-queue.

  The patch can be found here:
  https://www.spinics.net/lists/linux-scsi/msg130245.html

- Any chance this can be squashed into
  hpsa-correct-device-resets

Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Reviewed-by: Scott Teel <scott.teel@microsemi.com>
Signed-off-by: Don Brace <don.brace@microsemi.com>
---
 drivers/scsi/hpsa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c
index 2db226a6931c..2b4b4f4ff9dc 100644
--- a/drivers/scsi/hpsa.c
+++ b/drivers/scsi/hpsa.c
@@ -5956,7 +5956,7 @@  static int hpsa_eh_device_reset_handler(struct scsi_cmnd *scsicmd)
 	int rc = SUCCESS;
 	int i;
 	struct ctlr_info *h;
-	struct hpsa_scsi_dev_t *dev;
+	struct hpsa_scsi_dev_t *dev = NULL;
 	u8 reset_type;
 	char msg[48];
 	unsigned long flags;