From a334923d9e5ca7ce6f52b3f7c9e63125047de8a0 Mon Sep 17 00:00:00 2001 From: Martin Reindl Date: Sat, 25 Feb 2006 15:07:56 +0000 Subject: initialize rv to zero avoiding match on whatever is just next on the bus --- sys/arch/mac68k/dev/if_ae_nubus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/mac68k/dev/if_ae_nubus.c b/sys/arch/mac68k/dev/if_ae_nubus.c index 27555e43521..3649bf3fd08 100644 --- a/sys/arch/mac68k/dev/if_ae_nubus.c +++ b/sys/arch/mac68k/dev/if_ae_nubus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ae_nubus.c,v 1.15 2006/01/05 20:27:14 miod Exp $ */ +/* $OpenBSD: if_ae_nubus.c,v 1.16 2006/02/25 15:07:55 martin Exp $ */ /* $NetBSD: if_ae_nubus.c,v 1.17 1997/05/01 18:17:16 briggs Exp $ */ /* @@ -91,7 +91,7 @@ ae_nubus_match(parent, vcf, aux) { struct nubus_attach_args *na = (struct nubus_attach_args *) aux; bus_space_handle_t bsh; - int rv; + int rv = 0; if (bus_space_map(na->na_tag, NUBUS_SLOT2PA(na->slot), NBMEMSIZE, 0, &bsh)) -- cgit v1.2.3