diff mbox series

EDAC/amd64: fix typo in a comment

Message ID 20211212032653.56459-1-wangborong@cdjrlc.com (mailing list archive)
State New, archived
Headers show
Series EDAC/amd64: fix typo in a comment | expand

Commit Message

Jason Wang Dec. 12, 2021, 3:26 a.m. UTC
The double `reads' in the comment in line 126 is repeated. Remove one
of them from the comment.

Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
---
 drivers/edac/amd64_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Borislav Petkov Dec. 12, 2021, 11:48 a.m. UTC | #1
On Sun, Dec 12, 2021 at 11:26:53AM +0800, Jason Wang wrote:
> The double `reads' in the comment in line 126 is repeated. Remove one
> of them from the comment.
> 
> Signed-off-by: Jason Wang <wangborong@cdjrlc.com>
> ---
>  drivers/edac/amd64_edac.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

If you're going to waste your time fixing comments, then please fix your
commit message like I did for your previous patch:

https://git.kernel.org/pub/scm/linux/kernel/git/ras/ras.git/commit/?h=edac-misc&id=b011a57e41ccbd402ecdcb53514ba76b898ec22e

And then I'd strongly suggest you try fixing real bugs - there's no
shortage of those - instead of wasting your and others' time with
comments fixes. Those can be addressed when someone is changing the code
in that area too.

Thx.
diff mbox series

Patch

diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index ca0c67bc25c6..dff6469e9f67 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -123,7 +123,7 @@  static inline int amd64_read_dct_pci_cfg(struct amd64_pvt *pvt, u8 dct,
 		if (dct) {
 			/*
 			 * Note: If ganging is enabled, barring the regs
-			 * F2x[1,0]98 and F2x[1,0]9C; reads reads to F2x1xx
+			 * F2x[1,0]98 and F2x[1,0]9C; reads to F2x1xx
 			 * return 0. (cf. Section 2.8.1 F10h BKDG)
 			 */
 			if (dct_ganging_enabled(pvt))