Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic Slight change to previous.
details: https://anonhg.NetBSD.org/src/rev/94319dde05e7
branches: trunk
changeset: 485713:94319dde05e7
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 03 19:15:27 2000 +0000
description:
Slight change to previous.
diffstat:
sys/dev/ic/adw.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (23 lines):
diff -r d2ca9cbcbb05 -r 94319dde05e7 sys/dev/ic/adw.c
--- a/sys/dev/ic/adw.c Wed May 03 18:58:37 2000 +0000
+++ b/sys/dev/ic/adw.c Wed May 03 19:15:27 2000 +0000
@@ -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
@@ -174,10 +174,9 @@
sc->sc_control->carriers = malloc(ADW_CARRIER_SIZE * ADW_MAX_CARRIER,
M_DEVBUF, M_WAITOK);
if(!sc->sc_control->carriers) {
- error = ENOMEM;
- printf("%s: malloc() failed in allocating carrier structures,"
- " error = %d\n", sc->sc_dev.dv_xname, error);
- return (error);
+ printf("%s: malloc() failed in allocating carrier structures\n",
+ sc->sc_dev.dv_xname);
+ return (ENOMEM);
}
if ((error = bus_dmamem_alloc(sc->sc_dmat,
Home |
Main Index |
Thread Index |
Old Index