From: Anirban Chakraborty Date: Mon, 10 Nov 2008 23:53:20 +0000 (-0800) Subject: [SCSI] qla2xxx: Fix for build warning X-Git-Tag: v2.6.29-rc1~555^2~84 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=c51da4ecb03a4513996e64dd9500a9d5ca812523;p=linux-2.6-omap-h63xx.git [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 Signed-off-by: Anirban Chakraborty Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 05db1660855..9830fcb6130 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) char pci_info[30]; char fw_str[30]; struct scsi_host_template *sht; - int bars, mem_only, max_id = 0; + int bars, max_id, mem_only = 0; uint16_t req_length = 0, rsp_length = 0; bars = pci_select_bars(pdev, IORESOURCE_MEM | IORESOURCE_IO);