From b6a2f621d36db938eb2978e0d9801f8323ca6ee8 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 26 Dec 2016 00:55:02 +0100 Subject: [PATCH] ogg_afh_common.c: Remove pointless variable. The "len" variable is initialized once and never changes. --- ogg_afh_common.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ogg_afh_common.c b/ogg_afh_common.c index adab7f48..6e5a8934 100644 --- a/ogg_afh_common.c +++ b/ogg_afh_common.c @@ -127,19 +127,18 @@ int ogg_get_file_info(char *map, size_t numbytes, struct afh_info *afhi, { ogg_sync_state oss; ogg_page op; - long len = numbytes; char *buf; int ret, i, j, frames_per_chunk, ct_size; long long unsigned num_frames = 0; ogg_sync_init(&oss); ret = -E_OGG_SYNC; - buf = ogg_sync_buffer(&oss, len); + buf = ogg_sync_buffer(&oss, numbytes); if (!buf) goto out; - memcpy(buf, map, len); + memcpy(buf, map, numbytes); ret = -E_OGG_SYNC; - if (ogg_sync_wrote(&oss, len) < 0) + if (ogg_sync_wrote(&oss, numbytes) < 0) goto out; ret = process_ogg_packets(&oss, afhi, ci); if (ret < 0) -- 2.39.5