diff options
Diffstat (limited to 'sys/dev/ramdisk.c')
-rw-r--r-- | sys/dev/ramdisk.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/ramdisk.c b/sys/dev/ramdisk.c index aaf28e73aa1..43ee642e441 100644 --- a/sys/dev/ramdisk.c +++ b/sys/dev/ramdisk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ramdisk.c,v 1.11 1999/11/16 09:24:59 art Exp $ */ +/* $OpenBSD: ramdisk.c,v 1.12 2001/05/16 12:51:48 ho Exp $ */ /* $NetBSD: ramdisk.c,v 1.8 1996/04/12 08:30:09 leo Exp $ */ /* @@ -161,10 +161,6 @@ rdattach(n) for (i = 0; i < n; i++) { sc = malloc(sizeof(*sc), M_DEVBUF, M_WAITOK); - if (!sc) { - printf("ramdisk: malloc for attach failed!\n"); - return; - } bzero((caddr_t)sc, sizeof(*sc)); ramdisk_devs[i] = sc; sc->sc_dev.dv_unit = i; |