diff mbox series

RDMA/core: Fix repeated words in comments

Message ID 20230822174857.9003-1-roheetchavan@gmail.com (mailing list archive)
State Superseded
Headers show
Series RDMA/core: Fix repeated words in comments | expand

Commit Message

Rohit Chavan Aug. 22, 2023, 5:48 p.m. UTC
Corrected the repeated words in the documentation for
rdma_replace_ah_attr and ah_attribute.

Signed-off-by: Rohit Chavan <roheetchavan@gmail.com>
---
 drivers/infiniband/core/verbs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--
2.30.2

Comments

Leon Romanovsky Sept. 11, 2023, 9:55 a.m. UTC | #1
On Tue, Aug 22, 2023 at 11:18:57PM +0530, Rohit Chavan wrote:
> Corrected the repeated words in the documentation for
> rdma_replace_ah_attr and ah_attribute.
> 
> Signed-off-by: Rohit Chavan <roheetchavan@gmail.com>
> ---
>  drivers/infiniband/core/verbs.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
> index b99b3cc283b6..0c5b24ce3966 100644
> --- a/drivers/infiniband/core/verbs.c
> +++ b/drivers/infiniband/core/verbs.c
> @@ -366,7 +366,7 @@ void rdma_copy_ah_attr(struct rdma_ah_attr *dest,
>  EXPORT_SYMBOL(rdma_copy_ah_attr);
> 
>  /**
> - * rdma_replace_ah_attr - Replace valid ah_attr with new one.
> + * rdma_replace_ah_attr - Replace valid ah_attr with new one.

<...>

> - * ah_attribute must have valid port_num, sgid_index.
> + * ah_attribute must have valid port_num, sgid_index.

What does this patch fix/change?

Thanks

>   */
>  static int ib_resolve_unicast_gid_dmac(struct ib_device *device,
>  				       struct rdma_ah_attr *ah_attr)
> --
> 2.30.2
>
diff mbox series

Patch

diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c
index b99b3cc283b6..0c5b24ce3966 100644
--- a/drivers/infiniband/core/verbs.c
+++ b/drivers/infiniband/core/verbs.c
@@ -366,7 +366,7 @@  void rdma_copy_ah_attr(struct rdma_ah_attr *dest,
 EXPORT_SYMBOL(rdma_copy_ah_attr);

 /**
- * rdma_replace_ah_attr - Replace valid ah_attr with new one.
+ * rdma_replace_ah_attr - Replace valid ah_attr with new one.
  * @old:        Pointer to existing ah_attr which needs to be replaced.
  *              old is assumed to be valid or zero'd
  * @new:        Pointer to the new ah_attr.
@@ -744,7 +744,7 @@  EXPORT_SYMBOL(ib_get_gids_from_rdma_hdr);

 /* Resolve destination mac address and hop limit for unicast destination
  * GID entry, considering the source GID entry as well.
- * ah_attribute must have valid port_num, sgid_index.
+ * ah_attribute must have valid port_num, sgid_index.
  */
 static int ib_resolve_unicast_gid_dmac(struct ib_device *device,
 				       struct rdma_ah_attr *ah_attr)