Skip to contentSkip to conversation

m68k: fix the comments of via_rtc_send

PATCH In review Deming Wang 2 participants 2 messages Sep 15, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 m68k: fix the comments of via_rtc_send

remove the double word of 'in'.

---
 arch/m68k/mac/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/mac/misc.c +1 -1
index 4fab34791758..29a4cb46af01 100644
@@ -126,7 +126,7 @@ static void via_rtc_send(__u8 data)
 
 	reg = via1[vBufB] & ~(VIA1B_vRTCClk | VIA1B_vRTCData);
 
-	/* The bits of the byte go in in MSB order */
+	/* The bits of the byte go in MSB order */
 
 	for (i = 0 ; i < 8 ; i++) {
 		bit = data & 0x80? 1 : 0;
Signature · 1 line
2.27.0
#1 lore raw

Here we go again ...

In the interest of avoiding further patches of this nature, can we please change the comment to read:

'The bits of the byte go into the RTC in MSB order'

That ought to make it abundantly clear the duplicate 'in' isn't. (As would have looking at comment in the the function just before via_rtc_send() ...)

Cheers,

Michael

Am 15.09.2022 um 13:47 schrieb Deming Wang:

Quoted 21 lines

remove the double word of 'in'.

---
 arch/m68k/mac/misc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/m68k/mac/misc.c +1 -1
index 4fab34791758..29a4cb46af01 100644
@@ -126,7 +126,7 @@ static void via_rtc_send(__u8 data)
 
 	reg = via1[vBufB] & ~(VIA1B_vRTCClk | VIA1B_vRTCData);
 
-	/* The bits of the byte go in in MSB order */
+	/* The bits of the byte go in MSB order */
 
 	for (i = 0 ; i < 8 ; i++) {
 		bit = data & 0x80? 1 : 0;