diff options
author | 2001-05-16 12:48:31 +0000 | |
---|---|---|
committer | 2001-05-16 12:48:31 +0000 | |
commit | d424e204e60bfd7ffd01a57d3983f326a20fef28 (patch) | |
tree | 49e17bdb4138ce9da9ed97cdb6b57b088efe1497 /sys/arch/mvme68k/dev/flash.c | |
parent | document SMALL_KERNEL. (diff) | |
download | wireguard-openbsd-d424e204e60bfd7ffd01a57d3983f326a20fef28.tar.xz wireguard-openbsd-d424e204e60bfd7ffd01a57d3983f326a20fef28.zip |
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.c | 6 |
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; |