Fix (real) uninitialized error. (Someone familiar with this should see

if is really an error).
This commit is contained in:
matt 2003-10-30 22:03:46 +00:00
parent 7d342b5852
commit a72426fa60

View File

@ -1,4 +1,4 @@
/* $NetBSD: becc_pci.c,v 1.4 2003/07/15 00:24:52 lukem Exp $ */ /* $NetBSD: becc_pci.c,v 1.5 2003/10/30 22:03:46 matt Exp $ */
/* /*
* Copyright (c) 2001, 2002 Wasabi Systems, Inc. * Copyright (c) 2001, 2002 Wasabi Systems, Inc.
@ -41,7 +41,7 @@
*/ */
#include <sys/cdefs.h> #include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: becc_pci.c,v 1.4 2003/07/15 00:24:52 lukem Exp $"); __KERNEL_RCSID(0, "$NetBSD: becc_pci.c,v 1.5 2003/10/30 22:03:46 matt Exp $");
#include <sys/param.h> #include <sys/param.h>
#include <sys/systm.h> #include <sys/systm.h>
@ -347,7 +347,9 @@ becc_pci_intr_map(struct pci_attach_args *pa, pci_intr_handle_t *ihp)
} }
break; break;
default: default:
break; printf("becc_pci_intr_map: bogus pin: %d\n",
pa->pa_intrpin);
return (1);
} }
} else { } else {
switch (pa->pa_intrpin) { switch (pa->pa_intrpin) {