summaryrefslogtreecommitdiff
path: root/sys/src/9/ip/rudp.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-11-08 21:05:01 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-11-08 21:05:01 +0100
commit99cc56f2e986f7337142d382d699ef09c337074a (patch)
tree03b35c45be681d1b5716c147b1be0d94f52bd469 /sys/src/9/ip/rudp.c
parent5cbffd6e6b4430724532beb5bb130ea701cd1a70 (diff)
kernel/ip: remove nil checks for allocb() and padblock()
Diffstat (limited to 'sys/src/9/ip/rudp.c')
-rw-r--r--sys/src/9/ip/rudp.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/sys/src/9/ip/rudp.c b/sys/src/9/ip/rudp.c
index 739126f44..cc3da20f6 100644
--- a/sys/src/9/ip/rudp.c
+++ b/sys/src/9/ip/rudp.c
@@ -384,9 +384,6 @@ rudpkick(void *x)
/* Make space to fit rudp & ip header */
bp = padblock(bp, UDP_IPHDR+UDP_RHDRSIZE);
- if(bp == nil)
- return;
-
uh = (Udphdr *)(bp->rp);
uh->vihl = IP_VER4;
@@ -955,8 +952,6 @@ relsendack(Conv *c, Reliable *r, int hangup)
Fs *f;
bp = allocb(UDP_IPHDR + UDP_RHDRSIZE);
- if(bp == nil)
- return;
bp->wp += UDP_IPHDR + UDP_RHDRSIZE;
f = c->p->f;
uh = (Udphdr *)(bp->rp);