kill some dead code
authorAndre <maan@p133.(none)>
Sun, 4 Jun 2006 19:45:21 +0000 (21:45 +0200)
committerAndre <maan@p133.(none)>
Sun, 4 Jun 2006 19:45:21 +0000 (21:45 +0200)
if pdd is NULL, we have more serious problems, so kill the check.

dccp_recv.c

index 49024bb07c8addf1bd0297012df889b52b5fb25f..335ad2e630598de4d98cafbb2257e5e07be144af 100644 (file)
@@ -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)