dect
/
linux-2.6
Archived
13
0
Fork 0

qla3xxx: fix warning in drivers/net/qla3xxx.c

this warning:

  drivers/net/qla3xxx.c: In function ‘ql3xxx_probe’:
  drivers/net/qla3xxx.c:3912: warning: ‘pci_using_dac’ may be used uninitialized in this function

triggers because GCC does not recognize the (correct) error flow
between 'pci_using_dac' and 'err'.

Annotate it.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ingo Molnar 2008-11-25 16:49:07 -08:00 committed by David S. Miller
parent f166400bd4
commit be5a3c62c8
1 changed files with 1 additions and 1 deletions

View File

@ -3917,7 +3917,7 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev,
struct net_device *ndev = NULL;
struct ql3_adapter *qdev = NULL;
static int cards_found = 0;
int pci_using_dac, err;
int uninitialized_var(pci_using_dac), err;
err = pci_enable_device(pdev);
if (err) {