2022-06-22 17:29:53

by Jiang Jian

[permalink] [raw]
Subject: [PATCH] RDMA/core: Correct typos in comments

there is an unexpected word 'is' in the comments that need to be dropped

file - drivers/infiniband/core/rdma_core.c
line - 71

/* work and stuff was only created when the device is is hot-state */

changed t0:

/* work and stuff was only created when the device is hot-state */

Signed-off-by: Jiang Jian <[email protected]>
---
drivers/infiniband/core/rdma_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/infiniband/core/rdma_core.c b/drivers/infiniband/core/rdma_core.c
index 94d83b665a2f..29b1ab1d5f93 100644
--- a/drivers/infiniband/core/rdma_core.c
+++ b/drivers/infiniband/core/rdma_core.c
@@ -68,7 +68,7 @@ static int uverbs_try_lock_object(struct ib_uobject *uobj,
* In exclusive access mode, we check that the counter is zero (nobody
* claimed this object) and we set it to -1. Releasing a shared access
* lock is done simply by decreasing the counter. As for exclusive
- * access locks, since only a single one of them is is allowed
+ * access locks, since only a single one of them is allowed
* concurrently, setting the counter to zero is enough for releasing
* this lock.
*/
--
2.17.1


2022-06-24 20:14:01

by Jason Gunthorpe

[permalink] [raw]
Subject: Re: [PATCH] RDMA/core: Correct typos in comments

On Thu, Jun 23, 2022 at 01:08:53AM +0800, Jiang Jian wrote:
> there is an unexpected word 'is' in the comments that need to be dropped
>
> file - drivers/infiniband/core/rdma_core.c
> line - 71
>
> /* work and stuff was only created when the device is is hot-state */
>
> changed t0:
>
> /* work and stuff was only created when the device is hot-state */
>
> Signed-off-by: Jiang Jian <[email protected]>
> ---
> drivers/infiniband/core/rdma_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

I squashed this patch and the next one about 'for' into one patch and
applied to for-next

Thanks,
Jason