]> git.tue.mpg.de Git - paraslash.git/commitdiff
Simplify vss_send().
authorAndre Noll <maan@systemlinux.org>
Sat, 24 Jul 2010 16:52:37 +0000 (18:52 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 31 Oct 2010 11:06:57 +0000 (12:06 +0100)
vss.c

diff --git a/vss.c b/vss.c
index 5c66c9813abad0b795fd1d3be12691c909c9afcd..eae0d58e8b596939c62075742138ec74dfaee7f2 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -875,13 +875,8 @@ static void vss_send(struct vss_task *vsst)
                        &due, 1) < 0)
                return;
        list_for_each_entry_safe(fc, tmp_fc, &fec_client_list, node) {
-               switch (fc->state) {
-               case FEC_STATE_DISABLED:
+               if (fc->state == FEC_STATE_DISABLED)
                        continue;
-               case FEC_STATE_NONE:
-               case FEC_STATE_READY_TO_RUN:
-                       break;
-               }
                if (!next_slice_is_due(fc, NULL)) {
                        fec_active = 1;
                        continue;