mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 11:03:43 +02:00
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: 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>
This commit is contained in:
parent
807d8addc3
commit
8068acaff1
|
|
@ -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), \
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user