aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVikas Chaudhary <vikas.chaudhary@qlogic.com>2010-08-09 08:14:07 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-08-11 00:59:01 -0400
commit3c3e210877e89aa3bfbda22551876986c035c433 (patch)
treeb1f5c7d5234fbe4e095d5b72ed0de81e9cfca153
parent67110dfd45442e70753c575cf0509eaed237b749 (diff)
[SCSI] qla4xxx: fix compilation warning
Fix following warning: drivers/scsi/qla4xxx/ql4_nx.c: In function 'qla4_8xxx_get_flash_info': drivers/scsi/qla4xxx/ql4_nx.c:1952: warning: 'mid' may be used uninitialized in this function drivers/scsi/qla4xxx/ql4_nx.c:1952: note: 'mid' was declared here drivers/scsi/qla4xxx/ql4_nx.c:1952: warning: 'fid' may be used uninitialized in this function drivers/scsi/qla4xxx/ql4_nx.c:1952: note: 'fid' was declared here Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com> Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
-rw-r--r--drivers/scsi/qla4xxx/ql4_nx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_nx.c b/drivers/scsi/qla4xxx/ql4_nx.c
index 1b85235efd8c..e031a734836e 100644
--- a/drivers/scsi/qla4xxx/ql4_nx.c
+++ b/drivers/scsi/qla4xxx/ql4_nx.c
@@ -1953,7 +1953,8 @@ qla4_8xxx_get_fdt_info(struct scsi_qla_host *ha)
1953 uint16_t cnt, chksum; 1953 uint16_t cnt, chksum;
1954 uint16_t *wptr; 1954 uint16_t *wptr;
1955 struct qla_fdt_layout *fdt; 1955 struct qla_fdt_layout *fdt;
1956 uint16_t mid, fid; 1956 uint16_t mid = 0;
1957 uint16_t fid = 0;
1957 struct ql82xx_hw_data *hw = &ha->hw; 1958 struct ql82xx_hw_data *hw = &ha->hw;
1958 1959
1959 hw->flash_conf_off = FARX_ACCESS_FLASH_CONF; 1960 hw->flash_conf_off = FARX_ACCESS_FLASH_CONF;