lz_sarray_get_matches(): Remove unnecessary check
authorEric Biggers <ebiggers3@gmail.com>
Wed, 15 Jan 2014 03:58:59 +0000 (21:58 -0600)
committerEric Biggers <ebiggers3@gmail.com>
Wed, 15 Jan 2014 03:58:59 +0000 (21:58 -0600)
include/wimlib/lz_sarray.h

index 0c7007b..5b63ae7 100644 (file)
@@ -409,10 +409,10 @@ extend_left:
                                }
                        }
 
-                       /* Here we have lenL < lenR.  Extend right, unless the
-                        * minimum match length would be underrun.  */
-                       if (lenR == 0)
-                               return nmatches;
+                       /* Here we have lenL < lenR.  Extend right.
+                        * (No check for whether the minimum match length has
+                        * been underrun is needed, provided that such lengths
+                        * are marked as 0.)  */
                        goto extend_right;
                }
        }