From eb51951a61a641ef0c403c3c6df560f29b8c5468 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Sun, 1 Mar 2009 14:00:40 +0100 Subject: [PATCH] fecdec_filter.c: Kill useless UNUSED_GROUP_NUM. A group is complete iff num_received_slices >= data_slices_per_group. --- fecdec_filter.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fecdec_filter.c b/fecdec_filter.c index 87b6a366..6b6716a1 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -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, -- 2.39.5