aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qla3xxx.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2008-11-25 19:49:07 -0500
committerDavid S. Miller <davem@davemloft.net>2008-11-25 19:49:07 -0500
commitbe5a3c62c805878d67036b4683f09118cab4c9fd (patch)
tree89cc90fd132cf8905a53d9cef1637a38ac8c02aa /drivers/net/qla3xxx.c
parentf166400bd4c92df72d997e0da8713fae90d56e57 (diff)
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>
Diffstat (limited to 'drivers/net/qla3xxx.c')
-rw-r--r--drivers/net/qla3xxx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/qla3xxx.c b/drivers/net/qla3xxx.c
index 7671f943974c..6b7ed1a5b3b7 100644
--- a/drivers/net/qla3xxx.c
+++ b/drivers/net/qla3xxx.c
@@ -3917,7 +3917,7 @@ static int __devinit ql3xxx_probe(struct pci_dev *pdev,
3917 struct net_device *ndev = NULL; 3917 struct net_device *ndev = NULL;
3918 struct ql3_adapter *qdev = NULL; 3918 struct ql3_adapter *qdev = NULL;
3919 static int cards_found = 0; 3919 static int cards_found = 0;
3920 int pci_using_dac, err; 3920 int uninitialized_var(pci_using_dac), err;
3921 3921
3922 err = pci_enable_device(pdev); 3922 err = pci_enable_device(pdev);
3923 if (err) { 3923 if (err) {