# HG changeset patch # User vitor # Date 1218000261 0 # Node ID 86b6cb5b04d5bc36efd9b3944930e7a5bee02957 # Parent f516e1101167614d8101716b63b2a00611a104f8 Simplify eval_refl(): return directly when needed instead of storing the return value in a variable diff -r f516e1101167 -r 86b6cb5b04d5 ra144.c --- a/ra144.c Wed Aug 06 05:11:46 2008 +0000 +++ b/ra144.c Wed Aug 06 05:24:21 2008 +0000 @@ -231,7 +231,6 @@ */ static int eval_refl(int *refl, const int16_t *coefs, RA144Context *ractx) { - int retval = 0; int b, c, i; unsigned int u; int buffer1[10]; @@ -267,11 +266,11 @@ refl[c] = u = bp1[c]; if ((u + 0x1000) > 0x1fff) - retval = 1; + return 1; FFSWAP(int *, bp1, bp2); } - return retval; + return 0; } static int interp(RA144Context *ractx, int16_t *out, int block_num,