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>
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;