From 3cb003cf915d9042f8d84a523b6f3b79a5703aa6 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Thu, 17 Apr 2014 23:06:37 +0000 Subject: [PATCH] aacdec: Remove superfluous assignment. Jumping to the success label sets ret to consumed. ret is not used if there are samples available, so this is safe. --- aacdec_filter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/aacdec_filter.c b/aacdec_filter.c index a5355d10..121aa262 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -153,9 +153,8 @@ next_buffer: padd->error_count = 0; //PARA_CRIT_LOG("decoder ate %lu\n", padd->frame_info.bytesconsumed); consumed += padd->frame_info.bytesconsumed; - ret = consumed; if (!padd->frame_info.samples) - goto out; + goto success; btr_buf = para_malloc(2 * padd->frame_info.samples); loaded = 0; for (i = 0; i < padd->frame_info.samples; i++) { -- 2.30.2