From: Eric Biggers Date: Wed, 15 Jan 2014 03:58:59 +0000 (-0600) Subject: lz_sarray_get_matches(): Remove unnecessary check X-Git-Tag: v1.6.1~37 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=55d02ebb05358214d12cd98136fe55ca6019f33c lz_sarray_get_matches(): Remove unnecessary check --- diff --git a/include/wimlib/lz_sarray.h b/include/wimlib/lz_sarray.h index 0c7007b7..5b63ae7c 100644 --- a/include/wimlib/lz_sarray.h +++ b/include/wimlib/lz_sarray.h @@ -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; } }