From: Andre Noll Date: Sat, 24 Jul 2010 16:52:37 +0000 (+0200) Subject: Simplify vss_send(). X-Git-Tag: v0.4.5~20 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=7c8f46bd06b4f51e2826767d629a6c35f108d365;p=paraslash.git Simplify vss_send(). --- diff --git a/vss.c b/vss.c index 5c66c981..eae0d58e 100644 --- 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;