Skip to contentSkip to conversation

media: v4l2: Fix comment typo

PATCH In review Jason Wang 2 participants 2 messages Aug 4, 2022 Media (V4L/DVB)

lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 media: v4l2: Fix comment typo

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

---
 drivers/media/v4l2-core/v4l2-ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/v4l2-core/v4l2-ioctl.c +1 -1
index e6fd355a2e92..af75edee898c 100644
@@ -1045,7 +1045,7 @@ static void v4l_sanitize_format(struct v4l2_format *fmt)
 	/*
 	 * The v4l2_pix_format structure has been extended with fields that were
 	 * not previously required to be set to zero by applications. The priv
-	 * field, when set to a magic value, indicates the the extended fields
+	 * field, when set to a magic value, indicates the extended fields
 	 * are valid. Otherwise they will contain undefined values. To simplify
 	 * the API towards drivers zero the extended fields and set the priv
 	 * field to the magic value when the extended pixel format structure
Signature · 1 line
2.35.1
#1 lore raw

Hi Jason,

Quoted 12 lines · Jason Wang

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

---
 drivers/media/v4l2-core/v4l2-ioctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/v4l2-core/v4l2-ioctl.c +0 -0
index e6fd355a2e92..af75edee898c 100644

drivers/media/v4l2-core/v4l2-ioctl.c static void v4l_sanitize_format(struct v4l2_format *fmt) · line 1048

Quoted 5 lines
drivers/media/v4l2-core/v4l2-ioctl.c +1 -1
@@ -1045,7 +1045,7 @@ static void v4l_sanitize_format(struct v4l2_format *fmt)
 	/*
 	 * The v4l2_pix_format structure has been extended with fields that were
 	 * not previously required to be set to zero by applications. The priv
-	 * field, when set to a magic value, indicates the the extended fields
+	 * field, when set to a magic value, indicates the extended fields

I wonder if the original intent was to write "indicates that the extended fields ...".

Quoted 3 lines
drivers/media/v4l2-core/v4l2-ioctl.c +0 -0
 	 * are valid. Otherwise they will contain undefined values. To simplify
 	 * the API towards drivers zero the extended fields and set the priv
 	 * field to the magic value when the extended pixel format structure
Signature · 3 lines
Regards,

Laurent Pinchart