Skip to contentSkip to conversation

EDAC/amd64: fix typo in a comment

PATCH In review Jason Wang 2 participants 2 messages Dec 12, 2021

Subsystems (2)
lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 EDAC/amd64: fix typo in a comment

The double `reads' in the comment in line 126 is repeated. Remove one of them from the comment.

---
 drivers/edac/amd64_edac.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/edac/amd64_edac.c +1 -1
index ca0c67bc25c6..dff6469e9f67 100644
@@ -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))
Signature · 1 line
2.34.1
maintainer
#1 lore raw
Quoted 7 lines · Jason Wang

The double `reads' in the comment in line 126 is repeated. Remove one of them from the comment.

---
 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.

Signature · 4 lines
Regards/Gruss,
    Boris.

https://people.kernel.org/tglx/notes-about-netiquette