summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k/dev/flash.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:50:22 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:50:22 +0000
commita1ba5f046489f61451990b86f39a64f15b7a177a (patch)
tree592ed6a3cf10a0b29b117e9b3506d9e32bf50813 /sys/arch/mvme68k/dev/flash.c
parent885c6fa9e2c5dae9c5fbc277bc5b7018e4d78ac8 (diff)
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/arch/mvme68k/dev/flash.c')
-rw-r--r--sys/arch/mvme68k/dev/flash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/arch/mvme68k/dev/flash.c b/sys/arch/mvme68k/dev/flash.c
index 38817227130..3bafb882bea 100644
--- a/sys/arch/mvme68k/dev/flash.c
+++ b/sys/arch/mvme68k/dev/flash.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: flash.c,v 1.7 2000/03/26 23:31:59 deraadt Exp $ */
+/* $OpenBSD: flash.c,v 1.8 2001/05/16 12:49:46 ho Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -207,8 +207,6 @@ flashsavezone(sc, start)
u_char *zone;
zone = (u_char *)malloc(sc->sc_zonesize, M_TEMP, M_WAITOK);
- if (!zone)
- return (NULL);
sc->sc_vaddr[0] = FLCMD_RESET;
bcopy((u_char *)&sc->sc_vaddr[start], zone, sc->sc_zonesize);
return (zone);
@@ -394,8 +392,6 @@ flashwrite(dev, uio, flags)
int zonestart, zoneoff;
cmpbuf = (u_char *)malloc(sc->sc_zonesize, M_TEMP, M_WAITOK);
- if (!cmpbuf)
- return (ENOMEM);
while (uio->uio_resid > 0 && error == 0) {
iov = uio->uio_iov;