summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-06 15:59:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2010-09-06 15:59:04 +0000
commitf21d71f9d6e6cbb7af2aaf79528ac224ef6d73ad (patch)
treeb04ff48c88aba25539ea9e5084ca59426dadbe54
parenta91f5d42c5705630b97acf586c217b028ad6eaf2 (diff)
initialize rv to 0 in the activate function
-rw-r--r--sys/dev/ic/dc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/dc.c b/sys/dev/ic/dc.c
index 50b0776f493..16f7dc8094a 100644
--- a/sys/dev/ic/dc.c
+++ b/sys/dev/ic/dc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dc.c,v 1.119 2010/08/31 17:13:46 deraadt Exp $ */
+/* $OpenBSD: dc.c,v 1.120 2010/09/06 15:59:03 deraadt Exp $ */
/*
* Copyright (c) 1997, 1998, 1999
@@ -3129,7 +3129,7 @@ dc_activate(struct device *self, int act)
{
struct dc_softc *sc = (struct dc_softc *)self;
struct ifnet *ifp = &sc->sc_arpcom.ac_if;
- int rv;
+ int rv = 0;
switch (act) {
case DVACT_QUIESCE: