]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
[nit] Fix buggy indentation 2818/head
authorNick Terrell <terrelln@fb.com>
Fri, 8 Oct 2021 18:13:11 +0000 (11:13 -0700)
committerNick Terrell <terrelln@fb.com>
Fri, 8 Oct 2021 18:13:11 +0000 (11:13 -0700)
The bug was reported by Dan Carpenter and found by Smatch static
checker.

https://lore.kernel.org/all/20211008063704.GA5370@kili/

lib/compress/zstd_lazy.c

index c76fa840fb2767a6e05f3f5cadf87b19ebc00d1d..3f3a24264c2db7bed5be309762ea8b264b4ef181 100644 (file)
@@ -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;
         }