[PATCH] EDAC/altera: Fix comment typo

Jason Wang posted 1 patch 3 years, 8 months ago
drivers/edac/altera_edac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] EDAC/altera: Fix comment typo
Posted by Jason Wang 3 years, 8 months ago
The double `the' is duplicated in the comment, remove one.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 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
Re: [PATCH] EDAC/altera: Fix comment typo
Posted by Dinh Nguyen 3 years, 7 months ago

On 8/11/22 07:08, Jason Wang wrote:
> The double `the' is duplicated in the comment, remove one.
> 
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
>   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 <dinguyen@kernel.org>