[PATCH] lib: zstd: Fix comment typo

Xin Gao posted 1 patch 3 years, 8 months ago
lib/zstd/decompress/zstd_decompress.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] lib: zstd: Fix comment typo
Posted by Xin Gao 3 years, 8 months ago
The double `when' is duplicated in line 999, remove one.

Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
---
 lib/zstd/decompress/zstd_decompress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/zstd/decompress/zstd_decompress.c b/lib/zstd/decompress/zstd_decompress.c
index b4d81d84479a..6928e85f9d19 100644
--- a/lib/zstd/decompress/zstd_decompress.c
+++ b/lib/zstd/decompress/zstd_decompress.c
@@ -996,7 +996,7 @@ size_t ZSTD_decompress(void* dst, size_t dstCapacity, const void* src, size_t sr
 size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx) { return dctx->expected; }
 
 /*
- * Similar to ZSTD_nextSrcSizeToDecompress(), but when when a block input can be streamed,
+ * Similar to ZSTD_nextSrcSizeToDecompress(), but when a block input can be streamed,
  * we allow taking a partial block as the input. Currently only raw uncompressed blocks can
  * be streamed.
  *
-- 
2.30.2
Re: [PATCH] lib: zstd: Fix comment typo
Posted by Nick Terrell 3 years, 5 months ago
> On Jul 21, 2022, at 6:47 PM, Xin Gao <gaoxin@cdjrlc.com> wrote:
> 
> > 
> The double `when' is duplicated in line 999, remove one.

Thanks for the patch! I've taken it into my tree for the v6.2 merge window.

Best,
Nick Terrell
> 
> Signed-off-by: Xin Gao <gaoxin@cdjrlc.com>
> ---
> lib/zstd/decompress/zstd_decompress.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/zstd/decompress/zstd_decompress.c b/lib/zstd/decompress/zstd_decompress.c
> index b4d81d84479a..6928e85f9d19 100644
> --- a/lib/zstd/decompress/zstd_decompress.c
> +++ b/lib/zstd/decompress/zstd_decompress.c
> @@ -996,7 +996,7 @@ size_t ZSTD_decompress(void* dst, size_t dstCapacity, const void* src, size_t sr
> size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx) { return dctx->expected; }
> 
> /*
> - * Similar to ZSTD_nextSrcSizeToDecompress(), but when when a block input can be streamed,
> + * Similar to ZSTD_nextSrcSizeToDecompress(), but when a block input can be streamed,
>  * we allow taking a partial block as the input. Currently only raw uncompressed blocks can
>  * be streamed.
>  *
> -- 
> 2.30.2
>