From: Nick Terrell Date: Fri, 8 Oct 2021 18:13:11 +0000 (-0700) Subject: [nit] Fix buggy indentation X-Git-Tag: v1.5.1~1^2~81^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2818%2Fhead;p=thirdparty%2Fzstd.git [nit] Fix buggy indentation The bug was reported by Dan Carpenter and found by Smatch static checker. https://lore.kernel.org/all/20211008063704.GA5370@kili/ --- diff --git a/lib/compress/zstd_lazy.c b/lib/compress/zstd_lazy.c index c76fa840f..3f3a24264 100644 --- a/lib/compress/zstd_lazy.c +++ b/lib/compress/zstd_lazy.c @@ -1056,7 +1056,7 @@ FORCE_INLINE_TEMPLATE void ZSTD_row_update_internal(ZSTD_matchState_t* ms, const const U32 kMaxMatchEndPositionsToUpdate = 32; if (useCache) { - /* Only skip positions when using hash cache, i.e. + /* Only skip positions when using hash cache, i.e. * if we are loading a dict, don't skip anything. * If we decide to skip, then we only update a set number * of positions at the beginning and end of the match. @@ -1985,7 +1985,7 @@ size_t ZSTD_compressBlock_lazy_extDict_generic( matchLength = ml2, start = ip, offset=offsetFound; } - if (matchLength < 4) { + if (matchLength < 4) { ip += ((ip-anchor) >> kSearchStrength) + 1; /* jump faster over incompressible sections */ continue; }