Skip to contentSkip to conversation

net: ethernet/sfc: Fix comment typo

PATCH In review Jason Wang 2 participants 2 messages Jul 18, 2022

Subsystems (3)
lore
Share & tools
lore

Jason Wang

author
#0 lore raw

PATCH 1/1 net: ethernet/sfc: Fix comment typo

The double `that' is duplicated in line 2438, remove one.

---
 drivers/net/ethernet/sfc/falcon/falcon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sfc/falcon/falcon.c +1 -1
index 3324a6219a09..9fcd28500939 100644
@@ -2435,7 +2435,7 @@ static void falcon_init_rx_cfg(struct ef4_nic *efx)
 		 * supports scattering for user-mode queues, but will
 		 * split DMA writes at intervals of RX_USR_BUF_SIZE
 		 * (32-byte units) even for kernel-mode queues.  We
-		 * set it to be so large that that never happens.
+		 * set it to be so large that never happens.
 		 */
 		EF4_SET_OWORD_FIELD(reg, FRF_AA_RX_DESC_PUSH_EN, 0);
 		EF4_SET_OWORD_FIELD(reg, FRF_AA_RX_USR_BUF_SIZE,
Signature · 1 line
2.35.1
maintainer
#1 lore raw
Quoted 13 lines · Jason Wang

The double `that' is duplicated in line 2438, remove one.

---
 drivers/net/ethernet/sfc/falcon/falcon.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/sfc/falcon/falcon.c +0 -0
index 3324a6219a09..9fcd28500939 100644

drivers/net/ethernet/sfc/falcon/falcon.c static void falcon_init_rx_cfg(struct ef4_nic *efx) · line 2441

Quoted 8 lines
drivers/net/ethernet/sfc/falcon/falcon.c +1 -1
@@ -2435,7 +2435,7 @@ static void falcon_init_rx_cfg(struct ef4_nic *efx)
 		 * supports scattering for user-mode queues, but will
 		 * split DMA writes at intervals of RX_USR_BUF_SIZE
 		 * (32-byte units) even for kernel-mode queues.  We
-		 * set it to be so large that that never happens.
+		 * set it to be so large that never happens.
 		 */
 		EF4_SET_OWORD_FIELD(reg, FRF_AA_RX_DESC_PUSH_EN, 0);
 		EF4_SET_OWORD_FIELD(reg, FRF_AA_RX_USR_BUF_SIZE,

Nack. The first 'that' is a subordinating conjunction, the second is
a demonstrative pronoun, so this is not a mere duplication.
(Admittedly, some writers would omit the conjunction, but I think the
sentence reads more clearly with it present.)
One possible alternative would be to change the second 'that' to
'this' or 'the above', or even 'such splitting', if you really find the original confusing.

-ed