From dc08ffc707c9bfccd99dabfb8747a89edf184a8e Mon Sep 17 00:00:00 2001 From: Markus Stockhausen Date: Wed, 6 May 2026 21:52:52 +0200 Subject: [PATCH] realtek: mdio: drop memset Use modern compound literal assignment instead. Signed-off-by: Markus Stockhausen Link: https://github.com/openwrt/openwrt/pull/23230 Signed-off-by: Robert Marko --- .../realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c b/target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c index 377e9e71b8..da476ade57 100644 --- a/target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c +++ b/target/linux/realtek/files-6.18/drivers/net/mdio/mdio-realtek-otto.c @@ -693,9 +693,9 @@ static int rtmd_get_phy_info(struct rtmd_ctrl *ctrl, int pn, struct rtmd_phy_inf bus = ctrl->bus[ctrl->port[pn].smi_bus].mii_bus; smi_addr = ctrl->port[pn].smi_addr; phyid = rtmd_get_phy_id(mdiobus_get_phy(bus, smi_addr)); + *phyinfo = (struct rtmd_phy_info){}; /* Determine PHY specific characteristics for polling fine tuning */ - memset(phyinfo, 0, sizeof(*phyinfo)); switch (phyid) { case RTMD_PHY_AQR113C_A: case RTMD_PHY_AQR113C_B: