From 449b5adc16368b918c552a0c28221d4ce5d71275 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 14 Jan 2019 21:37:48 -0800 Subject: [PATCH] lib/deflate_decompress: slight simplification in build_decode_table() --- lib/deflate_decompress.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/deflate_decompress.c b/lib/deflate_decompress.c index 908c3f5..19ccdb2 100644 --- a/lib/deflate_decompress.c +++ b/lib/deflate_decompress.c @@ -810,10 +810,9 @@ build_decode_table(u32 decode_table[], bit = 1U << bsr32(codeword ^ ((1U << len) - 1)); codeword &= bit - 1; codeword |= bit; - if (--count == 0) { - while ((count = len_counts[++len]) == 0) - ; - } + count--; + while (count == 0) + count = len_counts[++len]; } }