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

Stephen Hemminger stephen at networkplumber.org
Wed Feb 22 17:25:22 CET 2023


Found by doing duplicate word scan.

Signed-off-by: Stephen Hemminger <stephen at 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



More information about the dev mailing list