summaryrefslogtreecommitdiff
path: root/sys/miscfs/procfs/procfs_status.c
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:48:33 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2001-05-16 12:48:33 +0000
commit6585d4db5e5404b845849f5e9fe0d623c62cfd22 (patch)
tree75800e56e16cae6b5e9c3de41d5c5b2756680841 /sys/miscfs/procfs/procfs_status.c
parent5bc24a1bb212a40743a45a2d5234a746c83746c2 (diff)
No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)
Diffstat (limited to 'sys/miscfs/procfs/procfs_status.c')
-rw-r--r--sys/miscfs/procfs/procfs_status.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/miscfs/procfs/procfs_status.c b/sys/miscfs/procfs/procfs_status.c
index 5865eb0956f..e1d647efea2 100644
--- a/sys/miscfs/procfs/procfs_status.c
+++ b/sys/miscfs/procfs/procfs_status.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_status.c,v 1.4 2000/12/18 18:44:28 provos Exp $ */
+/* $OpenBSD: procfs_status.c,v 1.5 2001/05/16 12:48:32 ho Exp $ */
/* $NetBSD: procfs_status.c,v 1.11 1996/03/16 23:52:50 christos Exp $ */
/*
@@ -168,8 +168,6 @@ procfs_dostatus(curp, p, pfs, uio)
len = procfs_stat_gen(p, NULL, 0);
ps = malloc(len, M_TEMP, M_WAITOK);
- if (!ps)
- return (ENOMEM);
(void) procfs_stat_gen(p, ps, len);
len -= uio->uio_offset;