From: Andre Noll Date: Sun, 25 Dec 2016 23:55:02 +0000 (+0100) Subject: ogg_afh_common.c: Remove pointless variable. X-Git-Tag: v0.6.0~19 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=b6a2f621d36db938eb2978e0d9801f8323ca6ee8;p=paraslash.git ogg_afh_common.c: Remove pointless variable. The "len" variable is initialized once and never changes. --- 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)