[v4,02/19] remove repeated word 'to'

Message ID 20230222162539.127103-3-stephen@networkplumber.org (mailing list archive)
State Accepted, archived
Delegated to: Thomas Monjalon
Headers
Series Remove repeated words in comments and messages |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Stephen Hemminger Feb. 22, 2023, 4:25 p.m. UTC
  Found by doing duplicate word scan.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 app/test/test_resource.c   | 2 +-
 lib/pipeline/rte_swx_ctl.c | 2 +-
 lib/power/guest_channel.c  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
  

Comments

Cristian Dumitrescu Feb. 22, 2023, 4:28 p.m. UTC | #1
> -----Original Message-----
> From: Stephen Hemminger <stephen@networkplumber.org>
> Sent: Wednesday, February 22, 2023 4:25 PM
> To: dev@dpdk.org
> Cc: Stephen Hemminger <stephen@networkplumber.org>; Dumitrescu, Cristian
> <cristian.dumitrescu@intel.com>; Hunt, David <david.hunt@intel.com>
> Subject: [PATCH v4 02/19] remove repeated word 'to'
> 
> Found by doing duplicate word scan.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  app/test/test_resource.c   | 2 +-
>  lib/pipeline/rte_swx_ctl.c | 2 +-
>  lib/power/guest_channel.c  | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/app/test/test_resource.c b/app/test/test_resource.c
> index 8f41e3babdc5..05c27db203cc 100644
> --- a/app/test/test_resource.c
> +++ b/app/test/test_resource.c
> @@ -45,7 +45,7 @@ static int test_resource_c(void)
>  			r->name);
> 
>  	TEST_ASSERT_SUCCESS(resource_fwrite_file(r, "test_resource.c"),
> -			"Failed to to write file %s", r->name);
> +			"Failed to write file %s", r->name);
> 
>  	f = fopen("test_resource.c", "r");
>  	TEST_ASSERT_NOT_NULL(f,
> diff --git a/lib/pipeline/rte_swx_ctl.c b/lib/pipeline/rte_swx_ctl.c
> index f7f49d7cebad..857770d297a4 100644
> --- a/lib/pipeline/rte_swx_ctl.c
> +++ b/lib/pipeline/rte_swx_ctl.c
> @@ -1683,7 +1683,7 @@ rte_swx_ctl_pipeline_table_entry_delete(struct
> rte_swx_ctl_pipeline *ctl,
>  	CHECK(!table_entry_check(ctl, table_id, entry, 1, 0), EINVAL);
> 
>  	/* The entry is found in the table->entries list:
> -	 * - Move the existing entry from the table->entries list to to the
> +	 * - Move the existing entry from the table->entries list to the
>  	 *   table->pending_delete list.
>  	 */
>  	existing_entry = table_entries_find(table, entry);
> diff --git a/lib/power/guest_channel.c b/lib/power/guest_channel.c
> index 969a9e5aaa06..7b2ae0b6506f 100644
> --- a/lib/power/guest_channel.c
> +++ b/lib/power/guest_channel.c
> @@ -74,7 +74,7 @@ guest_channel_host_connect(const char *path, unsigned
> int lcore_id)
>  			fd_path, lcore_id);
>  	fd = open(fd_path, O_RDWR);
>  	if (fd < 0) {
> -		RTE_LOG(ERR, GUEST_CHANNEL, "Unable to to connect to '%s'
> with error "
> +		RTE_LOG(ERR, GUEST_CHANNEL, "Unable to connect to '%s'
> with error "
>  				"%s\n", fd_path, strerror(errno));
>  		return -1;
>  	}
> --
> 2.39.1

Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
  
Hunt, David Feb. 22, 2023, 4:32 p.m. UTC | #2
On 22/02/2023 16:25, Stephen Hemminger wrote:
> Found by doing duplicate word scan.
>
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>   app/test/test_resource.c   | 2 +-
>   lib/pipeline/rte_swx_ctl.c | 2 +-
>   lib/power/guest_channel.c  | 2 +-
>   3 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/app/test/test_resource.c b/app/test/test_resource.c
> index 8f41e3babdc5..05c27db203cc 100644
> --- a/app/test/test_resource.c
> +++ b/app/test/test_resource.c
> @@ -45,7 +45,7 @@ static int test_resource_c(void)
>   			r->name);
>   
>   	TEST_ASSERT_SUCCESS(resource_fwrite_file(r, "test_resource.c"),
> -			"Failed to to write file %s", r->name);
> +			"Failed to write file %s", r->name);
>   
>   	f = fopen("test_resource.c", "r");
>   	TEST_ASSERT_NOT_NULL(f,
> diff --git a/lib/pipeline/rte_swx_ctl.c b/lib/pipeline/rte_swx_ctl.c
> index f7f49d7cebad..857770d297a4 100644
> --- a/lib/pipeline/rte_swx_ctl.c
> +++ b/lib/pipeline/rte_swx_ctl.c
> @@ -1683,7 +1683,7 @@ rte_swx_ctl_pipeline_table_entry_delete(struct rte_swx_ctl_pipeline *ctl,
>   	CHECK(!table_entry_check(ctl, table_id, entry, 1, 0), EINVAL);
>   
>   	/* The entry is found in the table->entries list:
> -	 * - Move the existing entry from the table->entries list to to the
> +	 * - Move the existing entry from the table->entries list to the
>   	 *   table->pending_delete list.
>   	 */
>   	existing_entry = table_entries_find(table, entry);
> diff --git a/lib/power/guest_channel.c b/lib/power/guest_channel.c
> index 969a9e5aaa06..7b2ae0b6506f 100644
> --- a/lib/power/guest_channel.c
> +++ b/lib/power/guest_channel.c
> @@ -74,7 +74,7 @@ guest_channel_host_connect(const char *path, unsigned int lcore_id)
>   			fd_path, lcore_id);
>   	fd = open(fd_path, O_RDWR);
>   	if (fd < 0) {
> -		RTE_LOG(ERR, GUEST_CHANNEL, "Unable to to connect to '%s' with error "
> +		RTE_LOG(ERR, GUEST_CHANNEL, "Unable to connect to '%s' with error "
>   				"%s\n", fd_path, strerror(errno));
>   		return -1;
>   	}


Acked-by: David Hunt <david.hunt@intel.com>
  

Patch

diff --git a/app/test/test_resource.c b/app/test/test_resource.c
index 8f41e3babdc5..05c27db203cc 100644
--- a/app/test/test_resource.c
+++ b/app/test/test_resource.c
@@ -45,7 +45,7 @@  static int test_resource_c(void)
 			r->name);
 
 	TEST_ASSERT_SUCCESS(resource_fwrite_file(r, "test_resource.c"),
-			"Failed to to write file %s", r->name);
+			"Failed to write file %s", r->name);
 
 	f = fopen("test_resource.c", "r");
 	TEST_ASSERT_NOT_NULL(f,
diff --git a/lib/pipeline/rte_swx_ctl.c b/lib/pipeline/rte_swx_ctl.c
index f7f49d7cebad..857770d297a4 100644
--- a/lib/pipeline/rte_swx_ctl.c
+++ b/lib/pipeline/rte_swx_ctl.c
@@ -1683,7 +1683,7 @@  rte_swx_ctl_pipeline_table_entry_delete(struct rte_swx_ctl_pipeline *ctl,
 	CHECK(!table_entry_check(ctl, table_id, entry, 1, 0), EINVAL);
 
 	/* The entry is found in the table->entries list:
-	 * - Move the existing entry from the table->entries list to to the
+	 * - Move the existing entry from the table->entries list to the
 	 *   table->pending_delete list.
 	 */
 	existing_entry = table_entries_find(table, entry);
diff --git a/lib/power/guest_channel.c b/lib/power/guest_channel.c
index 969a9e5aaa06..7b2ae0b6506f 100644
--- a/lib/power/guest_channel.c
+++ b/lib/power/guest_channel.c
@@ -74,7 +74,7 @@  guest_channel_host_connect(const char *path, unsigned int lcore_id)
 			fd_path, lcore_id);
 	fd = open(fd_path, O_RDWR);
 	if (fd < 0) {
-		RTE_LOG(ERR, GUEST_CHANNEL, "Unable to to connect to '%s' with error "
+		RTE_LOG(ERR, GUEST_CHANNEL, "Unable to connect to '%s' with error "
 				"%s\n", fd_path, strerror(errno));
 		return -1;
 	}