mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] usb/storage: fix repeated words in comments
@ 2022-07-16 13:52 Jilin Yuan
  2022-07-16 17:06 ` Alan Stern
  0 siblings, 1 reply; 2+ messages in thread
From: Jilin Yuan @ 2022-07-16 13:52 UTC (permalink / raw)
  To: stern, gregkh; +Cc: linux-usb, usb-storage, linux-kernel, Jilin Yuan

 Delete the redundant word 'the'.
 Delete the redundant word 'buffer'.

Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
---
 drivers/usb/storage/sddr09.c    | 2 +-
 drivers/usb/storage/transport.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/usb/storage/sddr09.c b/drivers/usb/storage/sddr09.c
index 51bcd4a43690..cb0ae82b4abc 100644
--- a/drivers/usb/storage/sddr09.c
+++ b/drivers/usb/storage/sddr09.c
@@ -1215,7 +1215,7 @@ sddr09_read_map(struct us_data *us) {
 	/*
 	 * read 64 bytes for every block (actually 1 << CONTROL_SHIFT)
 	 * but only use a 64 KB buffer
-	 * buffer size used must be a multiple of (1 << CONTROL_SHIFT)
+	 * size used must be a multiple of (1 << CONTROL_SHIFT)
 	 */
 #define SDDR09_READ_MAP_BUFSZ 65536
 
diff --git a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c
index 64d96d210e02..aa96f97e5ac4 100644
--- a/drivers/usb/storage/transport.c
+++ b/drivers/usb/storage/transport.c
@@ -1179,7 +1179,7 @@ int usb_stor_Bulk_transport(struct scsi_cmnd *srb, struct us_data *us)
 		 * If the device tried to send back more data than the
 		 * amount requested, the spec requires us to transfer
 		 * the CSW anyway.  Since there's no point retrying the
-		 * the command, we'll return fake sense data indicating
+		 * command, we'll return fake sense data indicating
 		 * Illegal Request, Invalid Field in CDB.
 		 */
 		if (result == USB_STOR_XFER_LONG)
-- 
2.36.1


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

* Re: [PATCH] usb/storage: fix repeated words in comments
  2022-07-16 13:52 [PATCH] usb/storage: fix repeated words in comments Jilin Yuan
@ 2022-07-16 17:06 ` Alan Stern
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Stern @ 2022-07-16 17:06 UTC (permalink / raw)
  To: Jilin Yuan; +Cc: gregkh, linux-usb, usb-storage, linux-kernel

On Sat, Jul 16, 2022 at 09:52:17PM +0800, Jilin Yuan wrote:
>  Delete the redundant word 'the'.
>  Delete the redundant word 'buffer'.
> 
> Signed-off-by: Jilin Yuan <yuanjilin@cdjrlc.com>
> ---
>  drivers/usb/storage/sddr09.c    | 2 +-
>  drivers/usb/storage/transport.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/usb/storage/sddr09.c b/drivers/usb/storage/sddr09.c
> index 51bcd4a43690..cb0ae82b4abc 100644
> --- a/drivers/usb/storage/sddr09.c
> +++ b/drivers/usb/storage/sddr09.c
> @@ -1215,7 +1215,7 @@ sddr09_read_map(struct us_data *us) {
>  	/*
>  	 * read 64 bytes for every block (actually 1 << CONTROL_SHIFT)
>  	 * but only use a 64 KB buffer
> -	 * buffer size used must be a multiple of (1 << CONTROL_SHIFT)
> +	 * size used must be a multiple of (1 << CONTROL_SHIFT)

This isn't a redundant word.  There should be a period after the last 
word ("buffer") on the preceding line.

Alan Stern

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

end of thread, other threads:[~2022-07-16 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-16 13:52 [PATCH] usb/storage: fix repeated words in comments Jilin Yuan
2022-07-16 17:06 ` Alan Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®