Slight change to previous.
This commit is contained in:
parent
2d66ccbd13
commit
ab635a46d3
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue