Skip to content

Commit

Permalink
BACKPORT: lib: zstd: Fix unused variable warning
Browse files Browse the repository at this point in the history
Backport the fix from upstream PR #2838 [0]. Found by the Kernel test
robot in [1].

[0] facebook/zstd#2838
[1] https://lore.kernel.org/linux-mm/[email protected]/T/

Reported-by: kernel test robot <[email protected]>
Signed-off-by: Nick Terrell <[email protected]>
[cyberknight777: backport to 4.14]
Signed-off-by: Cyber Knight <[email protected]>
  • Loading branch information
terrelln authored and cyberknight777 committed Nov 18, 2021
1 parent 6f7ff02 commit 41543d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/zstd/compress/zstd_compress_superblock.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ static size_t ZSTD_seqDecompressedSize(seqStore_t const* seqStore, const seqDef*
const seqDef* sp = sstart;
size_t matchLengthSum = 0;
size_t litLengthSum = 0;
(void)litLengthSum;
while (send-sp > 0) {
ZSTD_sequenceLength const seqLen = ZSTD_getSequenceLength(seqStore, sp);
litLengthSum += seqLen.litLength;
Expand Down

0 comments on commit 41543d2

Please sign in to comment.