[PATCH] scsi: Fix double word in comments

Bo Liu posted 1 patch 1 month, 2 weeks ago
drivers/scsi/bfa/bfa_fcs_rport.c        | 2 +-
drivers/scsi/fcoe/fcoe_ctlr.c           | 2 +-
drivers/scsi/isci/host.h                | 2 +-
drivers/scsi/isci/remote_device.h       | 2 +-
drivers/scsi/isci/remote_node_context.h | 2 +-
drivers/scsi/isci/task.c                | 2 +-
6 files changed, 6 insertions(+), 6 deletions(-)
[PATCH] scsi: Fix double word in comments
Posted by Bo Liu 1 month, 2 weeks ago
Remove the repeated word "the" in comments.

Signed-off-by: Bo Liu <liubo03@inspur.com>
---
 drivers/scsi/bfa/bfa_fcs_rport.c        | 2 +-
 drivers/scsi/fcoe/fcoe_ctlr.c           | 2 +-
 drivers/scsi/isci/host.h                | 2 +-
 drivers/scsi/isci/remote_device.h       | 2 +-
 drivers/scsi/isci/remote_node_context.h | 2 +-
 drivers/scsi/isci/task.c                | 2 +-
 6 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/drivers/scsi/bfa/bfa_fcs_rport.c b/drivers/scsi/bfa/bfa_fcs_rport.c
index d4bde9bbe75b..f88320715c16 100644
--- a/drivers/scsi/bfa/bfa_fcs_rport.c
+++ b/drivers/scsi/bfa/bfa_fcs_rport.c
@@ -1987,7 +1987,7 @@ bfa_fcs_rport_gidpn_response(void *fcsarg, struct bfa_fcxp_s *fcxp, void *cbarg,
 			/*
 			 * Device's PID has changed. We need to cleanup
 			 * and re-login. If there is another device with
-			 * the the newly discovered pid, send an scn notice
+			 * the newly discovered pid, send an scn notice
 			 * so that its new pid can be discovered.
 			 */
 			list_for_each(qe, &rport->port->rport_q) {
diff --git a/drivers/scsi/fcoe/fcoe_ctlr.c b/drivers/scsi/fcoe/fcoe_ctlr.c
index 8e4241c295e3..21b91f1b6d07 100644
--- a/drivers/scsi/fcoe/fcoe_ctlr.c
+++ b/drivers/scsi/fcoe/fcoe_ctlr.c
@@ -205,7 +205,7 @@ static int fcoe_sysfs_fcf_add(struct fcoe_fcf *new)
 		 * that doesn't have a priv (fcf was deleted). However,
 		 * libfcoe will always delete FCFs before trying to add
 		 * them. This is ensured because both recv_adv and
-		 * age_fcfs are protected by the the fcoe_ctlr's mutex.
+		 * age_fcfs are protected by the fcoe_ctlr's mutex.
 		 * This means that we should never get a FCF with a
 		 * non-NULL priv pointer.
 		 */
diff --git a/drivers/scsi/isci/host.h b/drivers/scsi/isci/host.h
index 52388374cf31..e4971ca00769 100644
--- a/drivers/scsi/isci/host.h
+++ b/drivers/scsi/isci/host.h
@@ -244,7 +244,7 @@ enum sci_controller_states {
 	SCIC_INITIALIZED,
 
 	/**
-	 * This state indicates the the controller is in the process of becoming
+	 * This state indicates the controller is in the process of becoming
 	 * ready (i.e. starting).  In this state no new IO operations are permitted.
 	 * This state is entered from the INITIALIZED state.
 	 */
diff --git a/drivers/scsi/isci/remote_device.h b/drivers/scsi/isci/remote_device.h
index c1fdf45751cd..0ab1db862de3 100644
--- a/drivers/scsi/isci/remote_device.h
+++ b/drivers/scsi/isci/remote_device.h
@@ -170,7 +170,7 @@ enum sci_status sci_remote_device_stop(
  * permitted.  This state is entered from the INITIAL state.  This state
  * is entered from the STOPPING state.
  *
- * @SCI_DEV_STARTING: This state indicates the the remote device is in
+ * @SCI_DEV_STARTING: This state indicates the remote device is in
  * the process of becoming ready (i.e. starting).  In this state no new
  * IO operations are permitted.  This state is entered from the STOPPED
  * state.
diff --git a/drivers/scsi/isci/remote_node_context.h b/drivers/scsi/isci/remote_node_context.h
index c7ee81d01125..f22950b12b8b 100644
--- a/drivers/scsi/isci/remote_node_context.h
+++ b/drivers/scsi/isci/remote_node_context.h
@@ -154,7 +154,7 @@ enum sci_remote_node_context_destination_state {
 /**
  * struct sci_remote_node_context - This structure contains the data
  *    associated with the remote node context object.  The remote node context
- *    (RNC) object models the the remote device information necessary to manage
+ *    (RNC) object models the remote device information necessary to manage
  *    the silicon RNC.
  */
 struct sci_remote_node_context {
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c
index 3a25b1a2c52d..aeb2cda92465 100644
--- a/drivers/scsi/isci/task.c
+++ b/drivers/scsi/isci/task.c
@@ -67,7 +67,7 @@
 /**
 * isci_task_refuse() - complete the request to the upper layer driver in
 *     the case where an I/O needs to be completed back in the submit path.
-* @ihost: host on which the the request was queued
+* @ihost: host on which the request was queued
 * @task: request to complete
 * @response: response code for the completed task.
 * @status: status code for the completed task.
-- 
2.31.1
Re: [PATCH] scsi: Fix double word in comments
Posted by Martin K. Petersen 1 month ago
Bo,

> Remove the repeated word "the" in comments.
>
> Signed-off-by: Bo Liu <liubo03@inspur.com>
> ---
>  drivers/scsi/bfa/bfa_fcs_rport.c        | 2 +-
>  drivers/scsi/fcoe/fcoe_ctlr.c           | 2 +-
>  drivers/scsi/isci/host.h                | 2 +-
>  drivers/scsi/isci/remote_device.h       | 2 +-
>  drivers/scsi/isci/remote_node_context.h | 2 +-
>  drivers/scsi/isci/task.c                | 2 +-
>  6 files changed, 6 insertions(+), 6 deletions(-)

One patch per driver, please.

However, in general we only aim to fix user-visible text (i.e. printk()
messages). Comment typos and coding style patches are only merged if the
driver maintainer explicitly acks them.

-- 
Martin K. Petersen