[PATCH] gpu/drm: fix repeated words in comments
Jilin Yuan
yuanjilin at cdjrlc.com
Tue Aug 23 12:15:44 UTC 2022
Delete the redundant word 'old'.
Delete the redundant word 'new'.
Signed-off-by: Jilin Yuan <yuanjilin at cdjrlc.com>
---
drivers/gpu/drm/drm_context.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/gpu/drm/drm_context.c b/drivers/gpu/drm/drm_context.c
index c6e6a3e7219a..2d871159162b 100644
--- a/drivers/gpu/drm/drm_context.c
+++ b/drivers/gpu/drm/drm_context.c
@@ -267,8 +267,8 @@ int drm_legacy_setsareactx(struct drm_device *dev, void *data,
* Switch context.
*
* \param dev DRM device.
- * \param old old context handle.
- * \param new new context handle.
+ * \param old context handle.
+ * \param new context handle.
* \return zero on success or a negative number on failure.
*
* Attempt to set drm_device::context_flag.
@@ -294,7 +294,7 @@ static int drm_context_switch(struct drm_device * dev, int old, int new)
* Complete context switch.
*
* \param dev DRM device.
- * \param new new context handle.
+ * \param new context handle.
* \return zero on success or a negative number on failure.
*
* Updates drm_device::last_context and drm_device::last_switch. Verifies the
--
2.36.1
More information about the dri-devel
mailing list