From 55d02ebb05358214d12cd98136fe55ca6019f33c Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Tue, 14 Jan 2014 21:58:59 -0600 Subject: [PATCH] lz_sarray_get_matches(): Remove unnecessary check --- include/wimlib/lz_sarray.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; } } -- 2.43.0