]> git.ipfire.org Git - thirdparty/linux.git/commit
net: phy: directly copy struct mdio_board_info in mdiobus_register_board_info
authorHeiner Kallweit <hkallweit1@gmail.com>
Wed, 11 Jun 2025 20:13:02 +0000 (22:13 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 13 Jun 2025 23:37:23 +0000 (16:37 -0700)
commitf59fdcef3a58785f3eae34820f7230b17de0f2ec
tree9a405a446ba904dc71df64da0a3631e4f70528c5
parent11d40db27155690d8de0be4c86c7638b64586c7e
net: phy: directly copy struct mdio_board_info in mdiobus_register_board_info

Using a direct assignment instead of memcpy reduces the text segment
size from 0x273 bytes to 0x19b bytes in my case.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/af371f2a-42f3-4d94-80b9-3420380a3f6f@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/phy/mdio-boardinfo.c