2022-09-08 13:30:18

by wangjianli

[permalink] [raw]
Subject: [PATCH] drm/vmwgfx: fix repeated words in comments

Delete the redundant word 'to'.

Signed-off-by: wangjianli <[email protected]>
---
drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
index f085dbd4736d..7677475b5d93 100644
--- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
+++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
@@ -409,7 +409,7 @@ static int vmw_view_res_val_add(struct vmw_sw_context *sw_context,

/**
* vmw_view_id_val_add - Look up a view and add it and the surface it's pointing
- * to to the validation list.
+ * to the validation list.
*
* @sw_context: The software context holding the validation list.
* @view_type: The view type to look up.
--
2.36.1


2022-09-08 14:38:49

by Randy Dunlap

[permalink] [raw]
Subject: Re: [PATCH] drm/vmwgfx: fix repeated words in comments



On 9/8/22 06:15, wangjianli wrote:
> Delete the redundant word 'to'.
>
> Signed-off-by: wangjianli <[email protected]>
> ---
> drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
> index f085dbd4736d..7677475b5d93 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c
> @@ -409,7 +409,7 @@ static int vmw_view_res_val_add(struct vmw_sw_context *sw_context,
>
> /**
> * vmw_view_id_val_add - Look up a view and add it and the surface it's pointing
> - * to to the validation list.

No, it's correct without this change.

> + * to the validation list.
> *
> * @sw_context: The software context holding the validation list.
> * @view_type: The view type to look up.

--
~Randy