From d424e204e60bfd7ffd01a57d3983f326a20fef28 Mon Sep 17 00:00:00 2001 From: ho Date: Wed, 16 May 2001 12:48:31 +0000 Subject: No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok) --- sys/compat/netbsd/netbsd_getcwd.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'sys/compat/netbsd/netbsd_getcwd.c') diff --git a/sys/compat/netbsd/netbsd_getcwd.c b/sys/compat/netbsd/netbsd_getcwd.c index fe9bec0ecf3..629c24f1218 100644 --- a/sys/compat/netbsd/netbsd_getcwd.c +++ b/sys/compat/netbsd/netbsd_getcwd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: netbsd_getcwd.c,v 1.3 1999/09/26 11:15:43 kstailey Exp $ */ +/* $OpenBSD: netbsd_getcwd.c,v 1.4 2001/05/16 12:50:21 ho Exp $ */ /* $NetBSD: vfs_getcwd.c,v 1.3.2.3 1999/07/11 10:24:09 sommerfeld Exp $ */ /*- @@ -579,8 +579,6 @@ int netbsd_sys___getcwd(p, v, retval) return ERANGE; path = (char *)malloc(len, M_TEMP, M_WAITOK); - if (!path) - return ENOMEM; bp = &path[len]; bend = bp; -- cgit v1.2.3-59-g8ed1b