summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-06-27 21:44:27 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-06-27 21:44:27 +0000
commit46cba9192e970d80d556791991862b19bea90ea2 (patch)
treee219d7b0b673d1ab0c59d802295815d4dff937f4 /sys/netinet
parent039c648cc1096a798918c59ba356afa274b0c3b4 (diff)
downloadFreeBSD-src-46cba9192e970d80d556791991862b19bea90ea2.zip
FreeBSD-src-46cba9192e970d80d556791991862b19bea90ea2.tar.gz
MFC r297391:
Remove some NULL checks for M_WAITOK allocations.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_subr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 9fe6eac..8afb05f 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1285,8 +1285,6 @@ tcp_pcblist(SYSCTL_HANDLER_ARGS)
return (error);
inp_list = malloc(n * sizeof *inp_list, M_TEMP, M_WAITOK);
- if (inp_list == NULL)
- return (ENOMEM);
INP_INFO_RLOCK(&V_tcbinfo);
for (inp = LIST_FIRST(V_tcbinfo.ipi_listhead), i = 0;
OpenPOWER on IntegriCloud