realtek: dsa: Clarify statistic port iterator variable
authorSven Eckelmann <[email protected]>
Wed, 5 Nov 2025 08:43:36 +0000 (09:43 +0100)
committerHauke Mehrtens <[email protected]>
Sat, 15 Nov 2025 23:10:56 +0000 (00:10 +0100)
commit501f4edb04c434ed966a9443788b2f968abca38f
treec96f10d105e2e0d7de653df145925512820ea346
parente20ab65281bb8cd5b28378945a774a7540843cd2
realtek: dsa: Clarify statistic port iterator variable

The functions iterating through the port statistic/counter (for
initialization or polling) use the generic name "i" for the iterator. This
makes reading the actual body of the loop cumbersome because it is not
clear that various parameters of functions are about a ports.

Suggested-by: Felix Baumann <[email protected]>
Signed-off-by: Sven Eckelmann <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/20631
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c