realtek: dsa: Clarify statistic port iterator variable
authorSven Eckelmann <se@simonwunderlich.de>
Wed, 5 Nov 2025 08:43:36 +0000 (09:43 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
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 <felix.bau@gmx.de>
Signed-off-by: Sven Eckelmann <se@simonwunderlich.de>
Link: https://github.com/openwrt/openwrt/pull/20631
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/dsa/rtl83xx/dsa.c