summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorxtraeme <xtraeme@NetBSD.org>2006-08-27 17:05:39 +0000
committerxtraeme <xtraeme@NetBSD.org>2006-08-27 17:05:39 +0000
commitf61564f6ba87e36d5d43a5251e7cd2082ea6df3a (patch)
tree279901af4729d04ebf9b11b16034235f7054338a /sys/dev/pci
parente7b8b95bebc709b92d572a1ed05dab0def047eb9 (diff)
Initialize a variable to 0 to appease gcc4 with -O3.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/twe.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/pci/twe.c b/sys/dev/pci/twe.c
index 1b890f6e901..94766fff559 100644
--- a/sys/dev/pci/twe.c
+++ b/sys/dev/pci/twe.c
@@ -1,4 +1,4 @@
-/* $NetBSD: twe.c,v 1.76 2006/08/23 15:44:30 christos Exp $ */
+/* $NetBSD: twe.c,v 1.77 2006/08/27 17:05:39 xtraeme Exp $ */
/*-
* Copyright (c) 2000, 2001, 2002, 2003, 2004 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.76 2006/08/23 15:44:30 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: twe.c,v 1.77 2006/08/27 17:05:39 xtraeme Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1925,6 +1925,8 @@ twe_describe_controller(struct twe_softc *sc)
uint32_t dsize;
uint8_t ports;
+ ports = 0;
+
/* get the port count */
rv |= twe_param_get_1(sc, TWE_PARAM_CONTROLLER,
TWE_PARAM_CONTROLLER_PortCount, &ports);