mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-04 08:24:15 +01:00
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>
This commit is contained in:
parent
ea0a14f347
commit
4724649689
1 changed files with 1 additions and 1 deletions
|
|
@ -873,7 +873,7 @@ static int rtmdio_reset(struct mii_bus *bus)
|
|||
static int rtmdio_probe(struct platform_device *pdev)
|
||||
{
|
||||
struct device *dev = &pdev->dev;
|
||||
struct device_node *dn[RTMDIO_MAX_PHY] = {}, *np;
|
||||
struct device_node *np, *dn[RTMDIO_MAX_PHY];
|
||||
struct rtmdio_ctrl *ctrl;
|
||||
struct mii_bus *bus;
|
||||
int ret, addr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue