]> git.ipfire.org Git - thirdparty/openwrt.git/commit
realtek: mdio: avoid unneeded array initialization 22131/head
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Sat, 21 Feb 2026 13:26:02 +0000 (14:26 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Sun, 1 Mar 2026 13:41:05 +0000 (14:41 +0100)
commit4724649689a2a5a9fd1b9f2716efafb6611e357f
treeac048720da3f49ec194d3a816e06e814b40d5717
parentea0a14f347e6589342c917c607cc8f32e7dbc0b1
realtek: mdio: avoid unneeded array initialization

rtmdio_probe() uses for_each_phy() to access dn[]. This will point
to initialized entries. No need to clear that array in advance.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/22131
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/files-6.12/drivers/net/mdio/mdio-realtek-otto.c