Skip to contentSkip to conversation

media: mc-request.c: Fix comment typo

PATCH In review Jason Wang 2 participants 2 messages Jul 18, 2022

Subsystems (2)
lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 media: mc-request.c: Fix comment typo

The double `that' is duplicated in line 162, remove one.

---
 drivers/media/mc/mc-request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/mc/mc-request.c +1 -1
index addb8f2d8939..752ea0bc804b 100644
@@ -159,7 +159,7 @@ static long media_request_ioctl_queue(struct media_request *req)
 	 * state can only happen if either the driver changes the state or if
 	 * the user cancels the vb2 queue. The driver can only change the state
 	 * after each object is queued through the req_queue op (and note that
-	 * that op cannot fail), so setting the state to QUEUED up front is
+	 * op cannot fail), so setting the state to QUEUED up front is
 	 * safe.
 	 *
 	 * The other reason for changing the state is if the vb2 queue is
Signature · 1 line
2.35.1
maintainer
#1 lore raw

Hi Jason,

Quoted 12 lines · Jason Wang

The double `that' is duplicated in line 162, remove one.

---
 drivers/media/mc/mc-request.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/media/mc/mc-request.c +0 -0
index addb8f2d8939..752ea0bc804b 100644

drivers/media/mc/mc-request.c static long media_request_ioctl_queue(struct media_request *req) · line 162

Quoted 4 lines
drivers/media/mc/mc-request.c +0 -1
@@ -159,7 +159,7 @@ static long media_request_ioctl_queue(struct media_request *req)
 	 * state can only happen if either the driver changes the state or if
 	 * the user cancels the vb2 queue. The driver can only change the state
 	 * after each object is queued through the req_queue op (and note that
-	 * that op cannot fail), so setting the state to QUEUED up front is

In this case, the second "that" is there for a reason.

Quoted 4 lines
drivers/media/mc/mc-request.c +1 -0
+	 * op cannot fail), so setting the state to QUEUED up front is
 	 * safe.
 	 *
 	 * The other reason for changing the state is if the vb2 queue is
Signature · 1 line
Sakari Ailus