From a8cfc0ee40bf8c504a25b64bc7ddbc7a726a56ec Mon Sep 17 00:00:00 2001 From: Julian Elischer Date: Sun, 19 Aug 2001 04:30:13 +0000 Subject: Forgot to remove this un-needed test. (M_WAITOK won't fail) I vaguely remember someone once proving it COULD return NULL.. was that changed? Reminded by: BDE MFC after: 2 weeks --- sys/kern/uipc_usrreq.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'sys/kern/uipc_usrreq.c') diff --git a/sys/kern/uipc_usrreq.c b/sys/kern/uipc_usrreq.c index d21641fbbe42..043bc6b18507 100644 --- a/sys/kern/uipc_usrreq.c +++ b/sys/kern/uipc_usrreq.c @@ -855,8 +855,6 @@ unp_pcblist(SYSCTL_HANDLER_ARGS) } unp_list = malloc(n * sizeof *unp_list, M_TEMP, M_WAITOK); - if (unp_list == 0) - return ENOMEM; for (unp = LIST_FIRST(head), i = 0; unp && i < n; unp = LIST_NEXT(unp, unp_link)) { -- cgit v1.2.3