* [PATCH] usb/core: fix repeated words in comments
@ 2022-08-21 15:16 Jilin Yuan
0 siblings, 0 replies; 2+ messages in thread
From: Jilin Yuan @ 2022-08-21 15:16 UTC (permalink / raw)
To: gregkh; +Cc: linux-usb, linux-kernel, Jilin Yuan
Delete the redundant word 'can'.
Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
drivers/usb/core/hub.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c
index 68e9121c1878..04a73871254f 100644
--- a/drivers/usb/core/hub.c
+++ b/drivers/usb/core/hub.c
@@ -2029,7 +2029,7 @@ static void recursively_mark_NOTATTACHED(struct usb_device *udev)
*
* udev->state is _not_ fully protected by the device lock. Although
* most transitions are made only while holding the lock, the state can
- * can change to USB_STATE_NOTATTACHED at almost any time. This
+ * change to USB_STATE_NOTATTACHED at almost any time. This
* is so that devices can be marked as disconnected as soon as possible,
* without having to wait for any semaphores to be released. As a result,
* all changes to any device's state must be protected by the
--
2.36.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] usb/core: fix repeated words in comments
@ 2022-07-16 13:24 Jilin Yuan
0 siblings, 0 replies; 2+ messages in thread
From: Jilin Yuan @ 2022-07-16 13:24 UTC (permalink / raw)
To: gregkh, jj251510319013, heikki.krogerus
Cc: linux-usb, linux-kernel, Jilin Yuan
Delete the redundant word 'the'.
Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
drivers/usb/core/driver.c | 2 +-
drivers/usb/core/usb.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/core/driver.c b/drivers/usb/core/driver.c
index b87452e22835..7e7e119c253f 100644
--- a/drivers/usb/core/driver.c
+++ b/drivers/usb/core/driver.c
@@ -1482,7 +1482,7 @@ static int usb_suspend_both(struct usb_device *udev, pm_message_t msg)
* @msg: Power Management message describing this state transition
*
* This is the central routine for resuming USB devices. It calls the
- * the resume method for @udev and then calls the resume methods for all
+ * resume method for @udev and then calls the resume methods for all
* the interface drivers in @udev.
*
* Autoresume requests originating from a child device or an interface
diff --git a/drivers/usb/core/usb.c b/drivers/usb/core/usb.c
index 2f71636af6e1..11b15d7b357a 100644
--- a/drivers/usb/core/usb.c
+++ b/drivers/usb/core/usb.c
@@ -801,7 +801,7 @@ EXPORT_SYMBOL_GPL(usb_intf_get_dma_device);
* is simple:
*
* When locking both a device and its parent, always lock the
- * the parent first.
+ * parent first.
*/
/**
--
2.36.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-08-21 15:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-21 15:16 [PATCH] usb/core: fix repeated words in comments Jilin Yuan
-- strict thread matches above, loose matches on Subject: below --
2022-07-16 13:24 Jilin Yuan
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).