2022-07-24 12:25:27

by Jason Wang

[permalink] [raw]
Subject: [PATCH] libceph: Fix comment typo

The double `without' is duplicated in the comment, remove one.

Signed-off-by: Jason Wang <[email protected]>
---
net/ceph/pagelist.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/ceph/pagelist.c b/net/ceph/pagelist.c
index 65e34f78b05d..74622b278d57 100644
--- a/net/ceph/pagelist.c
+++ b/net/ceph/pagelist.c
@@ -96,7 +96,7 @@ int ceph_pagelist_append(struct ceph_pagelist *pl, const void *buf, size_t len)
EXPORT_SYMBOL(ceph_pagelist_append);

/* Allocate enough pages for a pagelist to append the given amount
- * of data without without allocating.
+ * of data without allocating.
* Returns: 0 on success, -ENOMEM on error.
*/
int ceph_pagelist_reserve(struct ceph_pagelist *pl, size_t space)
--
2.35.1


2022-07-26 08:09:04

by Ilya Dryomov

[permalink] [raw]
Subject: Re: [PATCH] libceph: Fix comment typo

On Sun, Jul 24, 2022 at 2:20 PM Jason Wang <[email protected]> wrote:
>
> The double `without' is duplicated in the comment, remove one.
>
> Signed-off-by: Jason Wang <[email protected]>
> ---
> net/ceph/pagelist.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/ceph/pagelist.c b/net/ceph/pagelist.c
> index 65e34f78b05d..74622b278d57 100644
> --- a/net/ceph/pagelist.c
> +++ b/net/ceph/pagelist.c
> @@ -96,7 +96,7 @@ int ceph_pagelist_append(struct ceph_pagelist *pl, const void *buf, size_t len)
> EXPORT_SYMBOL(ceph_pagelist_append);
>
> /* Allocate enough pages for a pagelist to append the given amount
> - * of data without without allocating.
> + * of data without allocating.
> * Returns: 0 on success, -ENOMEM on error.
> */
> int ceph_pagelist_reserve(struct ceph_pagelist *pl, size_t space)
> --
> 2.35.1
>

Applied.

Thanks,

Ilya