mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
Currently there are several places where the driver uses the classic "i" as iterator. In these cases where it iterates phy ports use "addr" instead to make it easier to read. Do the same for the smi bus. Additionally forthcomming commits will show nicer diffs. While we are here fix the initialization sequence of the private structure. There is no need to set data to zero that has already been zero-allocated before. Instead initialize smi_bus[] with a value of "-1" to denote that a phy is not in scope. This is essential as some functions already have a matching check in place. Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de> Link: https://github.com/openwrt/openwrt/pull/21469 Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be> |
||
|---|---|---|
| .. | ||
| imagebuilder | ||
| linux | ||
| llvm-bpf | ||
| sdk | ||
| toolchain | ||
| Config.in | ||
| Makefile | ||