Browse Source

[pcnet32] Fix uninitialised variable

Reported-by: Geoff Lywood <glywood@vmware.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 14 years ago
parent
commit
c84a2c81a7
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/pcnet32.c

+ 1
- 1
src/drivers/net/pcnet32.c View File

513
 pcnet32_setup_probe_phy ( struct pcnet32_private *priv )
513
 pcnet32_setup_probe_phy ( struct pcnet32_private *priv )
514
 {
514
 {
515
 	unsigned long ioaddr = priv->pci_dev->ioaddr;
515
 	unsigned long ioaddr = priv->pci_dev->ioaddr;
516
-	char phycount;
516
+	unsigned int phycount = 0;
517
 	int phy_id;
517
 	int phy_id;
518
 	int i;
518
 	int i;
519
 
519
 

Loading…
Cancel
Save