qla2xxxx: Silence bogus warning for 'wrap'
Subsystems (2)
PATCH 1/1 qla2xxxx: Silence bogus warning for 'wrap'
The qla2xxx driver uses a port_id_t to mark the start of its enumerations. gcc is complaining that wrap.b24 may be used uninitialized, but this doesn't look to be possible. Silence it.
Signed-off-by Mike Waychison <[email protected]>
--- drivers/scsi/qla2xxx/qla_init.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/qla2xxx/qla_init.c +1 -1
@@ -2864,7 +2864,7 @@ qla2x00_find_all_fabric_devs(scsi_qla_host_t *vha,sw_info_t *swl;int swl_idx;int first_dev, last_dev; -port_id_t wrap, nxt_d_id; +port_id_t wrap = {}, nxt_d_id;struct qla_hw_data *ha = vha->hw;struct scsi_qla_host *vp, *base_vha =pci_get_drvdata (ha->pdev);struct scsi_qla_host *tvp;
Signature · 1 line
1.7.0.1