aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx/qla_nx.c
diff options
context:
space:
mode:
authorChad Dupuis <chad.dupuis@qlogic.com>2011-08-16 14:31:55 -0400
committerJames Bottomley <JBottomley@Parallels.com>2011-08-29 03:14:57 -0400
commite5fdae5583e30bbc730e2035d0b6da33e7d8e4ee (patch)
tree82fd2c7bffb192f3e2f9faa38bfee41dc6f0ee94 /drivers/scsi/qla2xxx/qla_nx.c
parent3173167f015b779e549e1be04707316cce1b57f1 (diff)
[SCSI] qla2xxx: Fix "active_mask" may be used uninitialized warning.
Since active_mask is first assigned in an "else" block, the compiler throws a warning saying that the active_mask variable may be used uninitialized in a print statement later. Initialize active_mask to 0 in the declaration to stop the warning. Signed-off-by: Chad Dupuis <chad.dupuis@qlogic.com> Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/qla2xxx/qla_nx.c')
-rw-r--r--drivers/scsi/qla2xxx/qla_nx.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_nx.c b/drivers/scsi/qla2xxx/qla_nx.c
index 77fde8b13447..94bded5ddce4 100644
--- a/drivers/scsi/qla2xxx/qla_nx.c
+++ b/drivers/scsi/qla2xxx/qla_nx.c
@@ -3539,7 +3539,8 @@ qla82xx_dev_failed_handler(scsi_qla_host_t *vha)
3539static void 3539static void
3540qla82xx_need_reset_handler(scsi_qla_host_t *vha) 3540qla82xx_need_reset_handler(scsi_qla_host_t *vha)
3541{ 3541{
3542 uint32_t dev_state, drv_state, drv_active, active_mask; 3542 uint32_t dev_state, drv_state, drv_active;
3543 uint32_t active_mask = 0;
3543 unsigned long reset_timeout; 3544 unsigned long reset_timeout;
3544 struct qla_hw_data *ha = vha->hw; 3545 struct qla_hw_data *ha = vha->hw;
3545 struct req_que *req = ha->req_q_map[0]; 3546 struct req_que *req = ha->req_q_map[0];