* [PATCH] lib: zstd: Fix comment typo
@ 2022-07-22 1:47 Xin Gao
2022-10-17 22:14 ` Nick Terrell
0 siblings, 1 reply; 4+ messages in thread
From: Xin Gao @ 2022-07-22 1:47 UTC (permalink / raw)
To: terrelln; +Cc: linux-kernel, Xin Gao
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] lib: zstd: Fix comment typo
2022-07-22 1:47 [PATCH] lib: zstd: Fix comment typo Xin Gao
@ 2022-10-17 22:14 ` Nick Terrell
0 siblings, 0 replies; 4+ messages in thread
From: Nick Terrell @ 2022-10-17 22:14 UTC (permalink / raw)
To: Xin Gao; +Cc: linux-kernel
> 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
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] lib: zstd: Fix comment typo
@ 2022-07-16 4:47 Jason Wang
0 siblings, 0 replies; 4+ messages in thread
From: Jason Wang @ 2022-07-16 4:47 UTC (permalink / raw)
To: terrelln; +Cc: linux-kernel, Jason Wang
The double `when' is duplicated in the comment, remove one.
Signed-off-by: Jason Wang <wangborong@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.35.1
^ permalink raw reply [flat|nested] 4+ messages in thread* [PATCH] lib: zstd: Fix comment typo
@ 2022-07-16 4:47 Jason Wang
0 siblings, 0 replies; 4+ messages in thread
From: Jason Wang @ 2022-07-16 4:47 UTC (permalink / raw)
To: terrelln; +Cc: linux-kernel, Jason Wang
The double `the' is duplicated in the comment, remove one.
Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
lib/zstd/decompress/zstd_decompress_block.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/zstd/decompress/zstd_decompress_block.c b/lib/zstd/decompress/zstd_decompress_block.c
index 2d101d9a842e..3067eb172c5d 100644
--- a/lib/zstd/decompress/zstd_decompress_block.c
+++ b/lib/zstd/decompress/zstd_decompress_block.c
@@ -434,7 +434,7 @@ void ZSTD_buildFSETable_body(ZSTD_seqSymbol* dt,
}
}
/* Now we spread those positions across the table.
- * The benefit of doing it in two stages is that we avoid the the
+ * The benefit of doing it in two stages is that we avoid the
* variable size inner loop, which caused lots of branch misses.
* Now we can run through all the positions without any branch misses.
* We unroll the loop twice, since that is what emperically worked best.
--
2.35.1
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-10-17 22:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22 1:47 [PATCH] lib: zstd: Fix comment typo Xin Gao
2022-10-17 22:14 ` Nick Terrell
-- strict thread matches above, loose matches on Subject: below --
2022-07-16 4:47 Jason Wang
2022-07-16 4:47 Jason Wang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®