From 4a633fcb6a96ba24dfd4267b845817e3df18abab Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 11 Jul 2011 23:37:52 +0200 Subject: [PATCH] fecdec: Kill an unused variable. The variable "p" is set, but the assigned value is never used. --- fecdec_filter.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fecdec_filter.c b/fecdec_filter.c index fb2dba02..09a2fabd 100644 --- a/fecdec_filter.c +++ b/fecdec_filter.c @@ -291,7 +291,7 @@ static int decode_group(struct fecdec_group *fg, struct filter_node *fn) size_t written, need; struct private_fecdec_data *pfd = fn->private_data; enum fec_group_usability u = group_is_usable(fg, pfd); - char *buf = NULL, *p; + char *buf = NULL; if (u == FEC_GROUP_UNUSABLE) { PARA_INFO_LOG("dropping unusable group %d\n", fg->h.group_num); @@ -315,7 +315,6 @@ static int decode_group(struct fecdec_group *fg, struct filter_node *fn) if (need > btr_pool_unused(pfd->btrp)) return -E_FECDEC_OVERRUN; btr_pool_get_buffer(pfd->btrp, &buf); - p = buf; if (u == FEC_GROUP_USABLE_WITH_HEADER) { PARA_INFO_LOG("writing audio file header\n"); written = 0; @@ -328,7 +327,6 @@ static int decode_group(struct fecdec_group *fg, struct filter_node *fn) btr_copy(fg->data[i], n, pfd->btrp, fn->btrn); written += n; } - p += written; } written = 0; for (; i < fg->h.data_slices_per_group; i++) { @@ -338,7 +336,6 @@ static int decode_group(struct fecdec_group *fg, struct filter_node *fn) btr_copy(fg->data[i], n, pfd->btrp, fn->btrn); written += n; } - p += written; return 0; } -- 2.39.5