Commit 8068acaf authored by Heiner Kallweit's avatar Heiner Kallweit Committed by Paolo Abeni
Browse files

net: phy: consider that mdio_bus_device_stat_field_show doesn't use member address



mdio_bus_device_stat_field_show() doesn't use the address member,
so we don't have to initialize it.

Signed-off-by: default avatarHeiner Kallweit <hkallweit1@gmail.com>
Link: https://patch.msgid.link/03a812a7-6871-4cc0-b5bf-ee80c6d6b5fd@gmail.com


Signed-off-by: default avatarPaolo Abeni <pabeni@redhat.com>
parent 807d8add
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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),		\
}