From: Markus Stockhausen Date: Wed, 6 May 2026 19:52:52 +0000 (+0200) Subject: realtek: mdio: drop memset X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc08ffc707c9bfccd99dabfb8747a89edf184a8e;p=thirdparty%2Fopenwrt.git 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 --- 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 377e9e71b83..da476ade578 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: