Skip to content

Commit

Permalink
[SCSI] qla2xxx: Fix for build warning
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Anirban Chakraborty authored and James Bottomley committed Dec 29, 2008
1 parent e315cd2 commit c51da4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/scsi/qla2xxx/qla_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c51da4e

Please sign in to comment.