From: Andre Noll Date: Thu, 17 Apr 2014 23:11:05 +0000 (+0000) Subject: aacdec: Remove check which is always true. X-Git-Tag: v0.6.0~7^2~9 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=794ecca1733a78908d56739db5b33c5ddcc41736;p=paraslash.git aacdec: Remove check which is always true. Just prior to the test we set ret to consumed, so it is known to be non-negative. --- diff --git a/aacdec_filter.c b/aacdec_filter.c index bbaeb799..7e6f5b21 100644 --- a/aacdec_filter.c +++ b/aacdec_filter.c @@ -165,11 +165,9 @@ next_buffer: btr_add_output(btr_buf, loaded, btrn); success: ret = consumed; - if (ret >= 0) { - padd->consumed_total += ret; - btr_consume(btrn, ret); - goto next_buffer; - } + padd->consumed_total += ret; + btr_consume(btrn, ret); + goto next_buffer; err: assert(ret < 0); btr_remove_node(&fn->btrn);