[PATCH] xtensa: fix repeated words in comments

Jilin Yuan posted 1 patch 3 years, 7 months ago
arch/xtensa/kernel/traps.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] xtensa: fix repeated words in comments
Posted by Jilin Yuan 3 years, 7 months ago
Delete the redundant word 'that'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 arch/xtensa/kernel/traps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c
index 0c25e035ff10..998299debbf5 100644
--- a/arch/xtensa/kernel/traps.c
+++ b/arch/xtensa/kernel/traps.c
@@ -322,7 +322,7 @@ static void do_illegal_instruction(struct pt_regs *regs)
 	 * When call0 application encounters an illegal instruction fast
 	 * exception handler will attempt to set PS.WOE and retry failing
 	 * instruction.
-	 * If we get here we know that that instruction is also illegal
+	 * If we get here we know that instruction is also illegal
 	 * with PS.WOE set, so it's not related to the windowed option
 	 * hence PS.WOE may be cleared.
 	 */
-- 
2.36.1
Re: [PATCH] xtensa: fix repeated words in comments
Posted by Max Filippov 3 years, 7 months ago
On Tue, Aug 30, 2022 at 11:40 PM Jilin Yuan <yuanjilin@cdjrlc.com> wrote:
>
> Delete the redundant word 'that'.
>
> Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
> ---
>  arch/xtensa/kernel/traps.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/arch/xtensa/kernel/traps.c b/arch/xtensa/kernel/traps.c
> index 0c25e035ff10..998299debbf5 100644
> --- a/arch/xtensa/kernel/traps.c
> +++ b/arch/xtensa/kernel/traps.c
> @@ -322,7 +322,7 @@ static void do_illegal_instruction(struct pt_regs *regs)
>          * When call0 application encounters an illegal instruction fast
>          * exception handler will attempt to set PS.WOE and retry failing
>          * instruction.
> -        * If we get here we know that that instruction is also illegal
> +        * If we get here we know that instruction is also illegal

I'd say that the sentence is correct.
It says that (we know that) (that instruction is also illegal).

-- 
Thanks.
-- Max