linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] usb/host: fix repeated words in comments
@ 2022-08-21 15:27 Jilin Yuan
  0 siblings, 0 replies; 4+ messages in thread
From: Jilin Yuan @ 2022-08-21 15:27 UTC (permalink / raw)
  To: stern; +Cc: linux-usb, linux-kernel, Jilin Yuan

 Delete the redundant word 'the'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 drivers/usb/host/ohci-sm501.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/host/ohci-sm501.c b/drivers/usb/host/ohci-sm501.c
index b91d50da6127..83b1b47ceaf5 100644
--- a/drivers/usb/host/ohci-sm501.c
+++ b/drivers/usb/host/ohci-sm501.c
@@ -154,7 +154,7 @@ static int ohci_hcd_sm501_drv_probe(struct platform_device *pdev)
 	 * using kmalloc() - so the usb core needs to be told that it must copy
 	 * data into our local memory if the buffers happen to be placed in
 	 * regular memory. A non-null hcd->localmem_pool initialized by the
-	 * the call to usb_hcd_setup_local_mem() below does just that.
+	 * call to usb_hcd_setup_local_mem() below does just that.
 	 */
 
 	retval = usb_hcd_setup_local_mem(hcd, mem->start,
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH] usb/host: fix repeated words in comments
  2022-07-16 13:31 Jilin Yuan
@ 2022-07-16 17:04 ` Alan Stern
  0 siblings, 0 replies; 4+ messages in thread
From: Alan Stern @ 2022-07-16 17:04 UTC (permalink / raw)
  To: Jilin Yuan
  Cc: gregkh, mathias.nyman, linux-usb, inux-arm-kernel, linux-kernel

On Sat, Jul 16, 2022 at 09:31:29PM +0800, Jilin Yuan wrote:
>  Delete the redundant word 'to'.
>  Delete the redundant word 'the'.
>  Delete the redundant word 'then'.
> 
> Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
> ---
>  drivers/usb/host/uhci-platform.c | 2 +-
>  drivers/usb/host/uhci-q.c        | 2 +-
>  drivers/usb/host/xhci-ring.c     | 2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/usb/host/uhci-platform.c b/drivers/usb/host/uhci-platform.c
> index b2049b47a08d..c7ef58c05276 100644
> --- a/drivers/usb/host/uhci-platform.c
> +++ b/drivers/usb/host/uhci-platform.c
> @@ -20,7 +20,7 @@ static int uhci_platform_init(struct usb_hcd *hcd)
>  	if (!uhci->rh_numports)
>  		uhci->rh_numports = uhci_count_ports(hcd);
>  
> -	/* Set up pointers to to generic functions */
> +	/* Set up pointers to generic functions */

This isn't a mistakenly repeated word; it is a misspelled word.  The 
second "to" should be "the".

>  	uhci->reset_hc = uhci_generic_reset_hc;
>  	uhci->check_and_reset_hc = uhci_generic_check_and_reset_hc;
>  
> diff --git a/drivers/usb/host/uhci-q.c b/drivers/usb/host/uhci-q.c
> index 35fcb826152c..e7f4c1f28349 100644
> --- a/drivers/usb/host/uhci-q.c
> +++ b/drivers/usb/host/uhci-q.c
> @@ -345,7 +345,7 @@ static int uhci_cleanup_queue(struct uhci_hcd *uhci, struct uhci_qh *qh,
>  		goto done;
>  	}
>  
> -	/* If the QH element pointer is UHCI_PTR_TERM then then currently
> +	/* If the QH element pointer is UHCI_PTR_TERM then currently

This isn't a mistakenly repeated word; it is also a misspelling.  The 
second "then" should be "the".

Alan Stern

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [PATCH] usb/host: fix repeated words in comments
@ 2022-07-16 13:36 Jilin Yuan
  0 siblings, 0 replies; 4+ messages in thread
From: Jilin Yuan @ 2022-07-16 13:36 UTC (permalink / raw)
  To: gregkh, stern; +Cc: linux-usb, linux-kernel, Jilin Yuan

 Delete the redundant word 'the'.
 Delete the redundant word 'to'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 drivers/usb/host/max3421-hcd.c | 2 +-
 drivers/usb/host/uhci-grlib.c  | 2 +-
 drivers/usb/host/uhci-hcd.h    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/max3421-hcd.c b/drivers/usb/host/max3421-hcd.c
index 502a3ac5e35b..352e3ac2b377 100644
--- a/drivers/usb/host/max3421-hcd.c
+++ b/drivers/usb/host/max3421-hcd.c
@@ -312,7 +312,7 @@ static const int hrsl_to_error[] = {
 
 /*
  * See https://www.beyondlogic.org/usbnutshell/usb4.shtml#Control for a
- * reasonable overview of how control transfers use the the IN/OUT
+ * reasonable overview of how control transfers use the IN/OUT
  * tokens.
  */
 #define MAX3421_HXFR_BULK_IN(ep)	(0x00 | (ep))	/* bulk or interrupt */
diff --git a/drivers/usb/host/uhci-grlib.c b/drivers/usb/host/uhci-grlib.c
index 0a201a73b196..3ef6d52839e5 100644
--- a/drivers/usb/host/uhci-grlib.c
+++ b/drivers/usb/host/uhci-grlib.c
@@ -43,7 +43,7 @@ static int uhci_grlib_init(struct usb_hcd *hcd)
 
 	uhci->rh_numports = uhci_count_ports(hcd);
 
-	/* Set up pointers to to generic functions */
+	/* Set up pointers to generic functions */
 	uhci->reset_hc = uhci_generic_reset_hc;
 	uhci->check_and_reset_hc = uhci_generic_check_and_reset_hc;
 	/* No special actions need to be taken for the functions below */
diff --git a/drivers/usb/host/uhci-hcd.h b/drivers/usb/host/uhci-hcd.h
index 8ae5ccd26753..0688c3e5bfe2 100644
--- a/drivers/usb/host/uhci-hcd.h
+++ b/drivers/usb/host/uhci-hcd.h
@@ -314,7 +314,7 @@ struct uhci_td {
  *
  * There's a special skeleton QH for Isochronous QHs which never appears
  * on the schedule.  Isochronous TDs go on the schedule before the
- * the skeleton QHs.  The hardware accesses them directly rather than
+ * skeleton QHs.  The hardware accesses them directly rather than
  * through their QH, which is used only for bookkeeping purposes.
  * While the UHCI spec doesn't forbid the use of QHs for Isochronous,
  * it doesn't use them either.  And the spec says that queues never
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [PATCH] usb/host: fix repeated words in comments
@ 2022-07-16 13:31 Jilin Yuan
  2022-07-16 17:04 ` Alan Stern
  0 siblings, 1 reply; 4+ messages in thread
From: Jilin Yuan @ 2022-07-16 13:31 UTC (permalink / raw)
  To: stern, gregkh, mathias.nyman
  Cc: linux-usb, inux-arm-kernel, linux-kernel, Jilin Yuan

 Delete the redundant word 'to'.
 Delete the redundant word 'the'.
 Delete the redundant word 'then'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 drivers/usb/host/uhci-platform.c | 2 +-
 drivers/usb/host/uhci-q.c        | 2 +-
 drivers/usb/host/xhci-ring.c     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/host/uhci-platform.c b/drivers/usb/host/uhci-platform.c
index b2049b47a08d..c7ef58c05276 100644
--- a/drivers/usb/host/uhci-platform.c
+++ b/drivers/usb/host/uhci-platform.c
@@ -20,7 +20,7 @@ static int uhci_platform_init(struct usb_hcd *hcd)
 	if (!uhci->rh_numports)
 		uhci->rh_numports = uhci_count_ports(hcd);
 
-	/* Set up pointers to to generic functions */
+	/* Set up pointers to generic functions */
 	uhci->reset_hc = uhci_generic_reset_hc;
 	uhci->check_and_reset_hc = uhci_generic_check_and_reset_hc;
 
diff --git a/drivers/usb/host/uhci-q.c b/drivers/usb/host/uhci-q.c
index 35fcb826152c..e7f4c1f28349 100644
--- a/drivers/usb/host/uhci-q.c
+++ b/drivers/usb/host/uhci-q.c
@@ -345,7 +345,7 @@ static int uhci_cleanup_queue(struct uhci_hcd *uhci, struct uhci_qh *qh,
 		goto done;
 	}
 
-	/* If the QH element pointer is UHCI_PTR_TERM then then currently
+	/* If the QH element pointer is UHCI_PTR_TERM then currently
 	 * executing URB has already been unlinked, so this one isn't it. */
 	if (qh_element(qh) == UHCI_PTR_TERM(uhci))
 		goto done;
diff --git a/drivers/usb/host/xhci-ring.c b/drivers/usb/host/xhci-ring.c
index 46d0b9ad6f74..ad81e9a508b1 100644
--- a/drivers/usb/host/xhci-ring.c
+++ b/drivers/usb/host/xhci-ring.c
@@ -1964,7 +1964,7 @@ static void handle_port_status(struct xhci_hcd *xhci,
 
 	/*
 	 * Check to see if xhci-hub.c is waiting on RExit to U0 transition (or
-	 * RExit to a disconnect state).  If so, let the the driver know it's
+	 * RExit to a disconnect state).  If so, let the driver know it's
 	 * out of the RExit state.
 	 */
 	if (!DEV_SUPERSPEED_ANY(portsc) && hcd->speed < HCD_USB3 &&
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-08-21 15:28 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-21 15:27 [PATCH] usb/host: fix repeated words in comments Jilin Yuan
  -- strict thread matches above, loose matches on Subject: below --
2022-07-16 13:36 Jilin Yuan
2022-07-16 13:31 Jilin Yuan
2022-07-16 17:04 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).