diff options
author | trasz <trasz@FreeBSD.org> | 2016-03-29 13:56:59 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-03-29 13:56:59 +0000 |
commit | ca92bb3067ab9958b69fda6b1f710ff0db5fea96 (patch) | |
tree | e39a5d4590b1ea3e68ff1a7bfa905eb2d62f10bf /sys/net | |
parent | 68e9a48abbf297dc6891e141adfa1e5ba920d0a8 (diff) | |
download | FreeBSD-src-ca92bb3067ab9958b69fda6b1f710ff0db5fea96.zip FreeBSD-src-ca92bb3067ab9958b69fda6b1f710ff0db5fea96.tar.gz |
Remove some NULL checks for M_WAITOK allocations.
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/rtsock.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index d59ef70..810da1b 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -275,8 +275,6 @@ rts_attach(struct socket *so, int proto, struct thread *td) /* XXX */ rp = malloc(sizeof *rp, M_PCB, M_WAITOK | M_ZERO); - if (rp == NULL) - return ENOBUFS; so->so_pcb = (caddr_t)rp; so->so_fibnum = td->td_proc->p_fibnum; |