aboutsummaryrefslogtreecommitdiff
path: root/src/liblzma/common/delta_coder.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2007-12-09 17:06:45 +0200
committerLasse Collin <lasse.collin@tukaani.org>2007-12-09 17:06:45 +0200
commit07ac881779a8477f2c1ab112b91a129e24aa743c (patch)
treefe7f62c63b22b5942c4556ff56125cd0330129e2 /src/liblzma/common/delta_coder.c
parentAdded a bunch of .lzma test files. (diff)
downloadxz-07ac881779a8477f2c1ab112b91a129e24aa743c.tar.xz
Take advantage of return_if_error() macro in more places.
Cleaned Subblock filter's initialization code too.
Diffstat (limited to 'src/liblzma/common/delta_coder.c')
-rw-r--r--src/liblzma/common/delta_coder.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/liblzma/common/delta_coder.c b/src/liblzma/common/delta_coder.c
index ec8c6d59..8a5a18b4 100644
--- a/src/liblzma/common/delta_coder.c
+++ b/src/liblzma/common/delta_coder.c
@@ -179,14 +179,8 @@ delta_coder_init(lzma_next_coder *next, lzma_allocator *allocator,
memzero(next->coder->history, LZMA_DELTA_DISTANCE_MAX);
// Initialize the next decoder in the chain, if any.
- {
- const lzma_ret ret = lzma_next_filter_init(&next->coder->next,
+ return lzma_next_filter_init(&next->coder->next,
allocator, filters + 1);
- if (ret != LZMA_OK)
- return ret;
- }
-
- return LZMA_OK;
}