aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla2xxx
diff options
context:
space:
mode:
authorAnirban Chakraborty <anirban.chakraborty@qlogic.com>2008-11-10 18:53:20 -0500
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2008-12-29 12:24:16 -0500
commitc51da4ecb03a4513996e64dd9500a9d5ca812523 (patch)
treea2f1b5925c8bcdce3ad8fbec9e5ce45438f00837 /drivers/scsi/qla2xxx
parente315cd28b9ef0d7b71e462ac16e18dbaa2f5adfe (diff)
[SCSI] qla2xxx: Fix for build warning
drivers/scsi/qla2xxx/qla_os.c: In function 'qla2x00_probe_one': drivers/scsi/qla2xxx/qla_os.c:1582: warning: 'mem_only' is used uninitialized in this function Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Anirban Chakraborty <anirban.chakraborty@qlogic.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/qla2xxx')
-rw-r--r--drivers/scsi/qla2xxx/qla_os.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c
index 05db1660855e..9830fcb6130a 100644
--- a/drivers/scsi/qla2xxx/qla_os.c
+++ b/drivers/scsi/qla2xxx/qla_os.c
@@ -1563,7 +1563,7 @@ qla2x00_probe_one(struct pci_dev *pdev, const struct pci_device_id *id)
1563 char pci_info[30]; 1563 char pci_info[30];
1564 char fw_str[30]; 1564 char fw_str[30];
1565 struct scsi_host_template *sht; 1565 struct scsi_host_template *sht;
1566 int bars, mem_only, max_id = 0; 1566 int bars, max_id, mem_only = 0;
1567 uint16_t req_length = 0, rsp_length = 0; 1567 uint16_t req_length = 0, rsp_length = 0;
1568 1568
1569 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO); 1569 bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO);