From: Andre <maan@p133.(none)>
Date: Sun, 4 Jun 2006 19:45:21 +0000 (+0200)
Subject: kill some dead code
X-Git-Tag: v0.2.14~86
X-Git-Url: https://git.tuebingen.mpg.de/?a=commitdiff_plain;h=e0c146b3e200d875dbcc78b3c5a306f090d7dcd5;p=paraslash.git

kill some dead code

if pdd is NULL, we have more serious problems, so kill the check.
---

diff --git a/dccp_recv.c b/dccp_recv.c
index 49024bb0..335ad2e6 100644
--- a/dccp_recv.c
+++ b/dccp_recv.c
@@ -125,8 +125,6 @@ static void dccp_recv_pre_select(struct sched *s, struct task *t)
 	struct private_dccp_recv_data *pdd = rn->private_data;
 
 	t->ret = 1;
-	if (!pdd)
-		return;
 	para_fd_set(pdd->fd, &s->rfds, &s->max_fileno);
 }
 
@@ -139,7 +137,7 @@ static void dccp_recv_post_select(struct sched *s, struct task *t)
 	if (rn->output_eof && *rn->output_eof)
 		goto out;
 	t->ret = 1;
-	if (!s->select_ret || !pdd || !FD_ISSET(pdd->fd, &s->rfds))
+	if (!s->select_ret || !FD_ISSET(pdd->fd, &s->rfds))
 		goto out; /* nothing to do */
 	t->ret = -E_DCCP_OVERRUN;
 	if (rn->loaded >= DCCP_BUFSIZE)