Slight change to previous.

This commit is contained in:
thorpej 2000-05-03 19:15:27 +00:00
parent 2d66ccbd13
commit ab635a46d3
1 changed files with 4 additions and 5 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: adw.c,v 1.17 2000/05/03 18:58:37 thorpej Exp $ */ /* $NetBSD: adw.c,v 1.18 2000/05/03 19:15:27 thorpej Exp $ */
/* /*
* Generic driver for the Advanced Systems Inc. SCSI controllers * Generic driver for the Advanced Systems Inc. SCSI controllers
@ -174,10 +174,9 @@ adw_alloc_carriers(sc)
sc->sc_control->carriers = malloc(ADW_CARRIER_SIZE * ADW_MAX_CARRIER, sc->sc_control->carriers = malloc(ADW_CARRIER_SIZE * ADW_MAX_CARRIER,
M_DEVBUF, M_WAITOK); M_DEVBUF, M_WAITOK);
if(!sc->sc_control->carriers) { if(!sc->sc_control->carriers) {
error = ENOMEM; printf("%s: malloc() failed in allocating carrier structures\n",
printf("%s: malloc() failed in allocating carrier structures," sc->sc_dev.dv_xname);
" error = %d\n", sc->sc_dev.dv_xname, error); return (ENOMEM);
return (error);
} }
if ((error = bus_dmamem_alloc(sc->sc_dmat, if ((error = bus_dmamem_alloc(sc->sc_dmat,