2022-08-28 19:21:11

by Chuck Lever III

[permalink] [raw]
Subject: [PATCH v2 6/7] SUNRPC: Fix typo in xdr_buf_subsegment's kdoc comment

Signed-off-by: Chuck Lever <[email protected]>
---
net/sunrpc/xdr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
index 482586c23fdd..8ad637ca703e 100644
--- a/net/sunrpc/xdr.c
+++ b/net/sunrpc/xdr.c
@@ -1575,7 +1575,7 @@ EXPORT_SYMBOL_GPL(xdr_buf_from_iov);
*
* @buf and @subbuf may be pointers to the same struct xdr_buf.
*
- * Returns -1 if base of length are out of bounds.
+ * Returns -1 if base or length are out of bounds.
*/
int xdr_buf_subsegment(const struct xdr_buf *buf, struct xdr_buf *subbuf,
unsigned int base, unsigned int len)



2022-08-29 13:57:48

by Jeff Layton

[permalink] [raw]
Subject: Re: [PATCH v2 6/7] SUNRPC: Fix typo in xdr_buf_subsegment's kdoc comment

On Sun, 2022-08-28 at 14:50 -0400, Chuck Lever wrote:
> Signed-off-by: Chuck Lever <[email protected]>
> ---
> net/sunrpc/xdr.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/sunrpc/xdr.c b/net/sunrpc/xdr.c
> index 482586c23fdd..8ad637ca703e 100644
> --- a/net/sunrpc/xdr.c
> +++ b/net/sunrpc/xdr.c
> @@ -1575,7 +1575,7 @@ EXPORT_SYMBOL_GPL(xdr_buf_from_iov);
> *
> * @buf and @subbuf may be pointers to the same struct xdr_buf.
> *
> - * Returns -1 if base of length are out of bounds.
> + * Returns -1 if base or length are out of bounds.
> */
> int xdr_buf_subsegment(const struct xdr_buf *buf, struct xdr_buf *subbuf,
> unsigned int base, unsigned int len)
>
>

Reviewed-by: Jeff Layton <[email protected]>