]> git.tue.mpg.de Git - paraslash.git/commitdiff
audiod: Kill some dead code.
authorAndre Noll <maan@systemlinux.org>
Sun, 1 Jul 2012 18:55:44 +0000 (20:55 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 8 Jul 2012 17:06:38 +0000 (17:06 +0000)
Both conditions are never true at this point.

audiod.c

index 40603c4eff782b0f945ccab6f5193e99f78b7462..93bc8da37c6e8cf16f550b9e88b8c6f2c0c5ef95 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1199,8 +1199,6 @@ static void status_post_select(struct sched *s, struct task *t)
                        kill_btrn(st->ct->btrn, &st->ct->task, -E_AUDIOD_OFF);
                        goto out;
                }
-               if (st->ct->task.error >= 0)
-                       goto out;
                close_stat_pipe();
                st->clock_diff_count = conf.clock_diff_count_arg;
                goto out;
@@ -1210,8 +1208,6 @@ static void status_post_select(struct sched *s, struct task *t)
                size_t sz;
                int ret;
                if (st->ct->task.error < 0) {
-                       if (st->ct->task.error >= 0)
-                               goto out;
                        close_stat_pipe();
                        goto out;
                }