2022-09-08 13:10:54

by wangjianli

[permalink] [raw]
Subject: [PATCH] scsi/mpt3sas: fix repeated words in comments

Delete the redundant word 'to'.

Signed-off-by: wangjianli <[email protected]>
---
drivers/scsi/mpt3sas/mpt3sas_base.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h
index 05364aa15ecd..c8443f69d15d 100644
--- a/drivers/scsi/mpt3sas/mpt3sas_base.h
+++ b/drivers/scsi/mpt3sas/mpt3sas_base.h
@@ -836,7 +836,7 @@ struct _enclosure_node {
/**
* enum reset_type - reset state
* @FORCE_BIG_HAMMER: issue diagnostic reset
- * @SOFT_RESET: issue message_unit_reset, if fails to to big hammer
+ * @SOFT_RESET: issue message_unit_reset, if fails to big hammer
*/
enum reset_type {
FORCE_BIG_HAMMER,
--
2.36.1


2022-09-08 16:12:08

by John Garry

[permalink] [raw]
Subject: Re: [PATCH] scsi/mpt3sas: fix repeated words in comments

On 08/09/2022 14:04, wangjianli wrote:
> Delete the redundant word 'to'.
>
> Signed-off-by: wangjianli<[email protected]>
> ---
> drivers/scsi/mpt3sas/mpt3sas_base.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h
> index 05364aa15ecd..c8443f69d15d 100644
> --- a/drivers/scsi/mpt3sas/mpt3sas_base.h
> +++ b/drivers/scsi/mpt3sas/mpt3sas_base.h
> @@ -836,7 +836,7 @@ struct _enclosure_node {
> /**
> * enum reset_type - reset state
> * @FORCE_BIG_HAMMER: issue diagnostic reset
> - * @SOFT_RESET: issue message_unit_reset, if fails to to big hammer

I guess that the original intention was "if fails go to big hammer"

> + * @SOFT_RESET: issue message_unit_reset, if fails to big hammer

This still makes no sense

> */
> enum reset_type {
> FORCE_BIG_HAMMER,