Fix "‘wrap’ may be used uninitialized" warning

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-07-13 12:24:13 +00:00
parent 8437061902
commit 6527947abb
+1
View File
@@ -2695,6 +2695,7 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *ha, struct list_head *new_fcports)
scsi_qla_host_t *pha = to_qla_parent(ha);
rval = QLA_SUCCESS;
wrap.b24 = 0; /* undefined */
/* Try GID_PT to get device list, else GAN. */
swl = kcalloc(MAX_FIBRE_DEVICES, sizeof(sw_info_t), GFP_ATOMIC);