aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>2009-10-17 21:53:36 -0400
committerMarty Connor <mdc@etherboot.org>2009-10-17 22:03:03 -0400
commit389eefd0cd5343cd35e45bfc7377596606d55efd (patch)
tree37fe84f6c9f291c3fe543d3f3fab07328cc42988
parent78e54426c046f5f55526ca9d51a129f2b7e28bc3 (diff)
downloadipxe-389eefd0cd5343cd35e45bfc7377596606d55efd.tar.gz
[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>
-rw-r--r--src/drivers/net/sis190.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/net/sis190.c b/src/drivers/net/sis190.c
index 9fd3d7ec..c312034d 100644
--- a/src/drivers/net/sis190.c
+++ b/src/drivers/net/sis190.c
@@ -963,7 +963,7 @@ static int sis190_get_mac_addr_from_apc(struct pci_device *pdev,
struct net_device *dev)
{
struct sis190_private *tp = netdev_priv(dev);
- struct pci_device *isa_bridge;
+ struct pci_device *isa_bridge = NULL;
struct device *d;
u8 reg, tmp8;
unsigned int i;