Browse Source

[sis190] Fix for gcc-3.3.3 compilation

gcc 3.3.3 gave the following error when compiling sis190.c

drivers/net/sis190.c: In function 'sis190_get_mac_addr_from_apc':
drivers/net/sis190.c:966: warning: 'isa_bridge' might be used
uninitialized in this function
make: *** [bin/sis190.o] Error 1

This patch allows error-free compilation.

Signed-off-by: Marty Connor <mdc@etherboot.org>
tags/v0.9.9
Shao Miller 14 years ago
parent
commit
389eefd0cd
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/drivers/net/sis190.c

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

@@ -963,7 +963,7 @@ static int sis190_get_mac_addr_from_apc(struct pci_device *pdev,
963 963
 					struct net_device *dev)
964 964
 {
965 965
 	struct sis190_private *tp = netdev_priv(dev);
966
-	struct pci_device *isa_bridge;
966
+	struct pci_device *isa_bridge = NULL;
967 967
 	struct device *d;
968 968
 	u8 reg, tmp8;
969 969
 	unsigned int i;

Loading…
Cancel
Save