2022-09-08 12:48:30

by wangjianli

[permalink] [raw]
Subject: [PATCH] selftests/cgroup: fix repeated words in comments

Delete the redundant word 'in'.

Signed-off-by: wangjianli <[email protected]>
---
tools/testing/selftests/cgroup/test_freezer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/cgroup/test_freezer.c b/tools/testing/selftests/cgroup/test_freezer.c
index ff519029f6f4..b479434e87b7 100644
--- a/tools/testing/selftests/cgroup/test_freezer.c
+++ b/tools/testing/selftests/cgroup/test_freezer.c
@@ -740,7 +740,7 @@ static int test_cgfreezer_ptraced(const char *root)

/*
* cg_check_frozen(cgroup, true) will fail here,
- * because the task in in the TRACEd state.
+ * because the task in the TRACEd state.
*/
if (cg_freeze_wait(cgroup, false))
goto cleanup;
--
2.36.1


2022-09-08 13:57:45

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] selftests/cgroup: fix repeated words in comments



On 9/8/22 05:11, wangjianli wrote:
> Delete the redundant word 'in'.
>
> Signed-off-by: wangjianli <[email protected]>
> ---
> tools/testing/selftests/cgroup/test_freezer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/cgroup/test_freezer.c b/tools/testing/selftests/cgroup/test_freezer.c
> index ff519029f6f4..b479434e87b7 100644
> --- a/tools/testing/selftests/cgroup/test_freezer.c
> +++ b/tools/testing/selftests/cgroup/test_freezer.c
> @@ -740,7 +740,7 @@ static int test_cgfreezer_ptraced(const char *root)
>
> /*
> * cg_check_frozen(cgroup, true) will fail here,
> - * because the task in in the TRACEd state.

is in

> + * because the task in the TRACEd state.
> */
> if (cg_freeze_wait(cgroup, false))
> goto cleanup;

--
~Randy

2022-09-08 14:19:54

by Mukesh Ojha

[permalink] [raw]
Subject: Re: [PATCH] selftests/cgroup: fix repeated words in comments

Hi,

On 9/8/2022 5:41 PM, wangjianli wrote:
> Delete the redundant word 'in'.
>
> Signed-off-by: wangjianli <[email protected]>
> ---
> tools/testing/selftests/cgroup/test_freezer.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/cgroup/test_freezer.c b/tools/testing/selftests/cgroup/test_freezer.c
> index ff519029f6f4..b479434e87b7 100644
> --- a/tools/testing/selftests/cgroup/test_freezer.c
> +++ b/tools/testing/selftests/cgroup/test_freezer.c
> @@ -740,7 +740,7 @@ static int test_cgfreezer_ptraced(const char *root)
>
> /*
> * cg_check_frozen(cgroup, true) will fail here,
> - * because the task in in the TRACEd state.
> + * because the task in the TRACEd state.

Should it be s/in in/is in/ ?

-Mukesh
> */
> if (cg_freeze_wait(cgroup, false))
> goto cleanup;