diff options
author | Toomas Soome <tsoome@me.com> | 2017-08-10 14:38:02 +0300 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2017-11-16 15:28:50 -0500 |
commit | 6e573db1dd63b3b24579b7ceee32de57c994405c (patch) | |
tree | 0ece208a49011b1cf7b57defb4f481d1d529e02e | |
parent | 9c3b8506879f8963287c430f2eb2e74c554a1c54 (diff) | |
download | illumos-joyent-6e573db1dd63b3b24579b7ceee32de57c994405c.tar.gz |
8770 lofiadm: variable 'btMode' set but not used
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Hans Rosenfeld <rosenfeld@grumpf.hope-2000.org>
Reviewed by: Yuri Pankov <yuripv@gmx.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/common/lzma/LzmaEnc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/common/lzma/LzmaEnc.c b/usr/src/common/lzma/LzmaEnc.c index c8cb228955..0d857945f1 100644 --- a/usr/src/common/lzma/LzmaEnc.c +++ b/usr/src/common/lzma/LzmaEnc.c @@ -1918,12 +1918,12 @@ static SRes LzmaEnc_CodeOneBlock(CLzmaEnc *p, Bool useLimits, UInt32 maxPackSize static SRes LzmaEnc_Alloc(CLzmaEnc *p, UInt32 keepWindowSize, ISzAlloc *alloc, ISzAlloc *allocBig) { UInt32 beforeSize = kNumOpts; - Bool btMode; + if (!RangeEnc_Alloc(&p->rc, alloc)) return SZ_ERROR_MEM; - btMode = (p->matchFinderBase.btMode != 0); #ifdef COMPRESS_MF_MT - p->mtMode = (p->multiThread && !p->fastMode && btMode); + p->mtMode = (p->multiThread && !p->fastMode && + (p->matchFinderBase.btMode != 0)); #endif { |