Commit 96bf0c4e authored by Maxime Chevallier's avatar Maxime Chevallier Committed by David S. Miller
Browse files

net: ethernet: fs_enet: drop the .adjust_link custom fs_ops



There's no in-tree user for the fs_ops .adjust_link() function, so we
can always use the generic one in fe_enet-main.

Acked-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: default avatarChristophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarMaxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2b29ac68
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -649,12 +649,7 @@ static void fs_adjust_link(struct net_device *dev)
	unsigned long flags;

	spin_lock_irqsave(&fep->lock, flags);

	if (fep->ops->adjust_link)
		fep->ops->adjust_link(dev);
	else
	generic_adjust_link(dev);

	spin_unlock_irqrestore(&fep->lock, flags);
}

+0 −1
Original line number Diff line number Diff line
@@ -77,7 +77,6 @@ struct fs_ops {
	void (*free_bd)(struct net_device *dev);
	void (*cleanup_data)(struct net_device *dev);
	void (*set_multicast_list)(struct net_device *dev);
	void (*adjust_link)(struct net_device *dev);
	void (*restart)(struct net_device *dev);
	void (*stop)(struct net_device *dev);
	void (*napi_clear_event)(struct net_device *dev);