From 609d21b734fc20495a481a199ae7cf5b15ac96cd Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Thu, 18 Nov 1999 08:32:02 +0000 Subject: Fix some warnings. --- sys/dev/ar/if_ar.c | 4 ++-- sys/dev/ar/if_ar_isa.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ar/if_ar.c b/sys/dev/ar/if_ar.c index f568bfed49080..4d27d728a70aa 100644 --- a/sys/dev/ar/if_ar.c +++ b/sys/dev/ar/if_ar.c @@ -428,9 +428,9 @@ arattach(struct ar_hardc *hc) struct ar_softc *sc; #ifndef NETGRAPH struct ifnet *ifp; + char *iface; #endif /* NETGRAPH */ int unit; - char *iface; printf("arc%d: %uK RAM, %u ports, rev %u.\n", hc->cunit, @@ -1129,7 +1129,7 @@ arc_init(struct ar_hardc *hc) MALLOC(sc, struct ar_softc *, hc->numports * sizeof(struct ar_softc), M_DEVBUF, M_WAITOK); if (sc == NULL) - return (ENOMEM); + return; bzero(sc, hc->numports * sizeof(struct ar_softc)); hc->sc = sc; diff --git a/sys/dev/ar/if_ar_isa.c b/sys/dev/ar/if_ar_isa.c index f568bfed49080..4d27d728a70aa 100644 --- a/sys/dev/ar/if_ar_isa.c +++ b/sys/dev/ar/if_ar_isa.c @@ -428,9 +428,9 @@ arattach(struct ar_hardc *hc) struct ar_softc *sc; #ifndef NETGRAPH struct ifnet *ifp; + char *iface; #endif /* NETGRAPH */ int unit; - char *iface; printf("arc%d: %uK RAM, %u ports, rev %u.\n", hc->cunit, @@ -1129,7 +1129,7 @@ arc_init(struct ar_hardc *hc) MALLOC(sc, struct ar_softc *, hc->numports * sizeof(struct ar_softc), M_DEVBUF, M_WAITOK); if (sc == NULL) - return (ENOMEM); + return; bzero(sc, hc->numports * sizeof(struct ar_softc)); hc->sc = sc; -- cgit v1.3