[SCSI] ibmvfc: Quiet gcc warning in ibmvfc_reset_device
authorBrian King <brking@linux.vnet.ibm.com>
Wed, 29 Oct 2008 13:46:47 +0000 (08:46 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 29 Dec 2008 17:24:13 +0000 (11:24 -0600)
Stops gcc from complaining about a possible uninitialized
variable being used in ibmvfc_reset_device.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/ibmvscsi/ibmvfc.c

index 844684581e452ac9348b45bed29cf5af2e19793e..9fead7f19e2256af1ba86c04db09d198076c5061 100644 (file)
@@ -1631,7 +1631,7 @@ static int ibmvfc_reset_device(struct scsi_device *sdev, int type, char *desc)
        struct ibmvfc_host *vhost = shost_priv(sdev->host);
        struct fc_rport *rport = starget_to_rport(scsi_target(sdev));
        struct ibmvfc_cmd *tmf;
-       struct ibmvfc_event *evt;
+       struct ibmvfc_event *evt = NULL;
        union ibmvfc_iu rsp_iu;
        struct ibmvfc_fcp_rsp *fc_rsp = &rsp_iu.cmd.rsp;
        int rsp_rc = -EBUSY;