]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
net: phy: consider that mdio_bus_device_stat_field_show doesn't use member address
authorHeiner Kallweit <hkallweit1@gmail.com>
Fri, 27 Feb 2026 22:07:16 +0000 (23:07 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Mar 2026 12:23:45 +0000 (13:23 +0100)
mdio_bus_device_stat_field_show() doesn't use the address member,
so we don't have to initialize it.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/03a812a7-6871-4cc0-b5bf-ee80c6d6b5fd@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/phy/mdio_bus.c

index 0c0cf7a7296a8dd2db382bb8e480136cd5fc6886..f189e9fbcbd997c9ff9f34501f076fa3b0fed2c3 100644 (file)
@@ -199,7 +199,6 @@ static struct mdio_bus_stat_attr dev_attr_mdio_bus_##field = {              \
 };                                                                     \
 static struct mdio_bus_stat_attr dev_attr_mdio_bus_device_##field = {  \
        .attr = __ATTR(field, 0444, mdio_bus_device_stat_field_show, NULL), \
-       .address = -1,                                                  \
        .field_offset = offsetof(struct mdio_bus_stats, field),         \
 }