2022-08-11 12:36:44

by Jason Wang

[permalink] [raw]
Subject: [PATCH] EDAC/altera: Fix comment typo

The double `the' is duplicated in the comment, remove one.

Signed-off-by: Jason Wang <[email protected]>
---
drivers/edac/altera_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
index e7e8e624a436..940f8149172c 100644
--- a/drivers/edac/altera_edac.c
+++ b/drivers/edac/altera_edac.c
@@ -168,7 +168,7 @@ static ssize_t altr_sdr_mc_err_inject_write(struct file *file,
/*
* To trigger the error, we need to read the data back
* (the data was written with errors above).
- * The READ_ONCE macros and printk are used to prevent the
+ * The READ_ONCE macros and printk are used to prevent
* the compiler optimizing these reads out.
*/
reg = READ_ONCE(ptemp[0]);
--
2.36.1


2022-08-16 19:03:30

by Dinh Nguyen

[permalink] [raw]
Subject: Re: [PATCH] EDAC/altera: Fix comment typo



On 8/11/22 07:08, Jason Wang wrote:
> The double `the' is duplicated in the comment, remove one.
>
> Signed-off-by: Jason Wang <[email protected]>
> ---
> drivers/edac/altera_edac.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/edac/altera_edac.c b/drivers/edac/altera_edac.c
> index e7e8e624a436..940f8149172c 100644
> --- a/drivers/edac/altera_edac.c
> +++ b/drivers/edac/altera_edac.c
> @@ -168,7 +168,7 @@ static ssize_t altr_sdr_mc_err_inject_write(struct file *file,
> /*
> * To trigger the error, we need to read the data back
> * (the data was written with errors above).
> - * The READ_ONCE macros and printk are used to prevent the
> + * The READ_ONCE macros and printk are used to prevent
> * the compiler optimizing these reads out.
> */
> reg = READ_ONCE(ptemp[0]);

Acked-by: Dinh Nguyen <[email protected]>