Skip to contentSkip to conversation

octeon_ep: Remove unneeded semicolon

PATCH In review Yang Li 2 participants 2 messages Oct 22, 2024

Subsystems (3)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 octeon_ep: Remove unneeded semicolon

This patch removes an unneeded semicolon after a while statement.

./drivers/net/ethernet/marvell/octeon_ep/octep_rx.c:381:2-3: Unneeded semicolon

---
 drivers/net/ethernet/marvell/octeon_ep/octep_rx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/marvell/octeon_ep/octep_rx.c +1 -1
index 8af75cb37c3e..d65d9572ffa6 100644
@@ -378,7 +378,7 @@ static void octep_oq_drop_rx(struct octep_oq *oq,
 	while (data_len > 0) {
 		octep_oq_next_pkt(oq, buff_info, read_idx, desc_used);
 		data_len -= oq->buffer_size;
-	};
+	}
 }
 
 /**
Signature · 1 line
2.32.0.3.g01195cf9f
reviewer
#1 lore raw
Quoted 7 lines · Yang Li

This patch removes an unneeded semicolon after a while statement.

./drivers/net/ethernet/marvell/octeon_ep/octep_rx.c:381:2-3: Unneeded semicolon

Hi Yang Li,

While I agree that this change is correct, and improves the code. Netdev discourages clean-ups along these lines that are not in the context of other work [1].

[1] https://docs.kernel.org/process/maintainer-netdev.html#clean-up-patches

Signature · 1 line
pw-bot: not-applicable