From e0c146b3e200d875dbcc78b3c5a306f090d7dcd5 Mon Sep 17 00:00:00 2001 From: Andre Date: Sun, 4 Jun 2006 21:45:21 +0200 Subject: [PATCH] kill some dead code if pdd is NULL, we have more serious problems, so kill the check. --- dccp_recv.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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) -- 2.39.2