openwrt/target/linux/realtek/files-5.15/drivers/net/dsa/rtl83xx
Olliver Schinagl 0a83889e89 realtek: Reduce variable scopes
Linus prefers to have loop initializers nice and tightly scoped. In
OpenWRT this has been possible since 41a1a652fb ("kernel: backport
gnu11 upgrade").

This patch cleans up variable scope while trying to do the above for
'simple for loops'.

This cleans up and simplifies some functions and code, and pulls in
variables to a smaller scope.

Signed-off-by: Olliver Schinagl <oliver@schinagl.nl>
2022-12-27 16:33:15 +01:00
..
common.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
debugfs.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
dsa.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
Kconfig realtek: Whitespace and codestyle cleanup 2022-12-27 16:31:48 +01:00
Makefile realtek: copy dts/files/patches/configs for 5.15 2022-12-15 20:52:09 +01:00
qos.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
rtl83xx.h realtek: Whitespace and codestyle cleanup 2022-12-27 16:31:48 +01:00
rtl838x.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
rtl838x.h realtek: Replace C++ style comments 2022-12-27 16:33:01 +01:00
rtl839x.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
rtl930x.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
rtl931x.c realtek: Reduce variable scopes 2022-12-27 16:33:15 +01:00
tc.c realtek: Replace C++ style comments 2022-12-27 16:33:01 +01:00