]> git.tue.mpg.de Git - paraslash.git/commitdiff
fecdec_filter.c: Kill useless UNUSED_GROUP_NUM.
authorAndre Noll <maan@systemlinux.org>
Sun, 1 Mar 2009 13:00:40 +0000 (14:00 +0100)
committerAndre Noll <maan@systemlinux.org>
Sun, 1 Mar 2009 13:00:40 +0000 (14:00 +0100)
A group is complete iff num_received_slices >= data_slices_per_group.

fecdec_filter.c

index 87b6a3669d6f1ab929dbf7a913f2bf237dcfaef6..6b6716a115c18c26429d12d49f38a40981314574 100644 (file)
@@ -78,14 +78,8 @@ struct private_fecdec_data {
 #define FOR_EACH_FECDEC_GROUP(g, d) for (g = (d)->groups; \
        (g) - (d)->groups < NUM_FEC_GROUPS; (g)++)
 
-/** */
-#define UNUSED_GROUP_NUM 0xffffffff
-
 static int group_complete(struct fecdec_group *fg)
 {
-       if (fg->h.group_num == UNUSED_GROUP_NUM)
-               return 0;
-       //PARA_INFO_LOG("received slices: %u, slices per group: %u\n", fg->num_received_slices, fg->h.data_slices_per_group);
        return fg->num_received_slices >= fg->h.data_slices_per_group;
 }
 
@@ -112,7 +106,6 @@ static void clear_group(struct fecdec_group *fg)
        fg->num_slices = 0;
        memset(&fg->h, 0, sizeof(struct fec_header));
        fg->num_received_slices = 0;
-       fg->h.group_num = UNUSED_GROUP_NUM;
 }
 
 static int find_group(struct fec_header *h,