diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2008-11-26 18:01:18 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2008-11-26 18:01:18 +0000 |
| commit | 5b0d74a7d3329ec3fc5818d9185aba7f29291ca7 (patch) | |
| tree | 1f18fca1c5cb07903752415463f9d3a2d3b04a7c /apps/codecs/demac/libdemac/decoder.c | |
| parent | ffc6766a4d486990a9f3a64d81a3c3e5ab12f445 (diff) | |
| download | rockbox-5b0d74a7d3329ec3fc5818d9185aba7f29291ca7.zip rockbox-5b0d74a7d3329ec3fc5818d9185aba7f29291ca7.tar.gz rockbox-5b0d74a7d3329ec3fc5818d9185aba7f29291ca7.tar.bz2 rockbox-5b0d74a7d3329ec3fc5818d9185aba7f29291ca7.tar.xz | |
Get rid of unused return values, except the one from decode_chunk() which will be used in the dual core split.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19236 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/codecs/demac/libdemac/decoder.c')
| -rw-r--r-- | apps/codecs/demac/libdemac/decoder.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/apps/codecs/demac/libdemac/decoder.c b/apps/codecs/demac/libdemac/decoder.c index 31bcb28..30ab2bd 100644 --- a/apps/codecs/demac/libdemac/decoder.c +++ b/apps/codecs/demac/libdemac/decoder.c @@ -82,7 +82,6 @@ int ICODE_ATTR_DEMAC decode_chunk(struct ape_ctx_t* ape_ctx, int32_t* decoded0, int32_t* decoded1, int count) { - int res; int32_t left, right; #ifdef ROCKBOX int scale = (APE_OUTPUT_DEPTH - ape_ctx->bps); @@ -93,11 +92,11 @@ int ICODE_ATTR_DEMAC decode_chunk(struct ape_ctx_t* ape_ctx, if ((ape_ctx->channels==1) || (ape_ctx->frameflags & APE_FRAMECODE_PSEUDO_STEREO)) { if (ape_ctx->frameflags & APE_FRAMECODE_STEREO_SILENCE) { - res = entropy_decode(ape_ctx, inbuffer, firstbyte, bytesconsumed, decoded0, decoded1, count); + entropy_decode(ape_ctx, inbuffer, firstbyte, bytesconsumed, decoded0, decoded1, count); /* We are pure silence, so we're done. */ return 0; } else { - res = entropy_decode(ape_ctx, inbuffer, firstbyte, bytesconsumed, decoded0, NULL, count); + entropy_decode(ape_ctx, inbuffer, firstbyte, bytesconsumed, decoded0, NULL, count); } switch (ape_ctx->compressiontype) @@ -143,7 +142,7 @@ int ICODE_ATTR_DEMAC decode_chunk(struct ape_ctx_t* ape_ctx, return 0; } - res = entropy_decode(ape_ctx, inbuffer, firstbyte, bytesconsumed, decoded0, decoded1, count); + entropy_decode(ape_ctx, inbuffer, firstbyte, bytesconsumed, decoded0, decoded1, count); /* Apply filters - compression type 1000 doesn't have any */ switch (ape_ctx->compressiontype) @@ -184,6 +183,5 @@ int ICODE_ATTR_DEMAC decode_chunk(struct ape_ctx_t* ape_ctx, } } } - - return res; + return 0; } |