alsa: Don't set t->error in ->pre_select().
authorAndre Noll <maan@systemlinux.org>
Thu, 13 Jun 2013 08:54:24 +0000 (10:54 +0200)
committerAndre Noll <maan@systemlinux.org>
Sat, 8 Mar 2014 13:39:33 +0000 (14:39 +0100)
->pre_select() methods should never fail, and tasks should not
set this variable at all. It is ignored anyway when set there.

alsa_write.c

index a3912c1..0824640 100644 (file)
@@ -211,7 +211,6 @@ static void alsa_write_pre_select(struct sched *s, struct task *t)
        if (ret < 0) {
                PARA_ERROR_LOG("could not get alsa poll fd: %s\n",
                        snd_strerror(-ret));
-               t->error = -E_ALSA;
                return;
        }
        pad->poll_fd = pfd.fd;