diff mbox series

[10/11] ethdev: fix repeated word in comment

Message ID 20220722214106.162640-11-stephen@networkplumber.org (mailing list archive)
State Superseded, archived
Delegated to: Thomas Monjalon
Headers show
Series Fix repeated words in comments and messages | expand

Checks

Context Check Description
ci/checkpatch warning coding style issues

Commit Message

Stephen Hemminger July 22, 2022, 9:41 p.m. UTC
Replace 'of of'

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 lib/ethdev/rte_ethdev.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Thomas Monjalon July 25, 2022, 6:25 a.m. UTC | #1
22/07/2022 23:41, Stephen Hemminger:
> Replace 'of of'
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
> ---
>  lib/ethdev/rte_ethdev.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h
> index de9e970d4d11..701eac328fe6 100644
> --- a/lib/ethdev/rte_ethdev.h
> +++ b/lib/ethdev/rte_ethdev.h
> @@ -3356,7 +3356,7 @@ int rte_eth_macaddrs_get(uint16_t port_id, struct rte_ether_addr *ma,
>  /**
>   * Retrieve the contextual information of an Ethernet device.
>   *
> - * As part of this function, a number of of fields in dev_info will be
> + * As part of this function, a number of fields in dev_info will be
>   * initialized as follows:
>   *
>   * rx_desc_lim = lim

This comment is the code of the function.
That's very unusual and should be completely removed in my opinion,
instead of just fixing the repeated word.
diff mbox series

Patch

diff --git a/lib/ethdev/rte_ethdev.h b/lib/ethdev/rte_ethdev.h
index de9e970d4d11..701eac328fe6 100644
--- a/lib/ethdev/rte_ethdev.h
+++ b/lib/ethdev/rte_ethdev.h
@@ -3356,7 +3356,7 @@  int rte_eth_macaddrs_get(uint16_t port_id, struct rte_ether_addr *ma,
 /**
  * Retrieve the contextual information of an Ethernet device.
  *
- * As part of this function, a number of of fields in dev_info will be
+ * As part of this function, a number of fields in dev_info will be
  * initialized as follows:
  *
  * rx_desc_lim = lim