Skip to content

Commit c3ad9d9

Browse files
ahduyckkuba-moo
authored andcommitted
net: phylink: Remove unused function pointer from phylink structure
From what I can tell the .get_fixed_state pointer in the phylink structure hasn't been used since commit 5c05c1d ("net: phylink, dsa: eliminate phylink_fixed_state_cb()") . Since I can't find any users for it we might as well just drop the pointer. Signed-off-by: Alexander Duyck <alexanderduyck@fb.com> Reviewed-by: Jacob Keller <jacob.e.keller@intel.com> Reviewed-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk> Link: https://patch.msgid.link/174240634772.1745174.5690351737682751849.stgit@ahduyck-xeon-server.home.arpa Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent f1fce08 commit c3ad9d9

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/net/phy/phylink.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,6 @@ struct phylink {
7272
struct gpio_desc *link_gpio;
7373
unsigned int link_irq;
7474
struct timer_list link_poll;
75-
void (*get_fixed_state)(struct net_device *dev,
76-
struct phylink_link_state *s);
7775

7876
struct mutex state_mutex;
7977
struct phylink_link_state phy_state;

0 commit comments

Comments
 (0)