Skip to content

Commit a635037

Browse files
TaeheeYoodavem330
authored andcommitted
gtp: remove duplicate code in gtp_dellink()
gtp_encap_disable() in gtp_dellink() is unnecessary because it will be called by unregister_netdevice(). unregister_netdevice() internally calls gtp_dev_uninit() by ->ndo_uninit(). And gtp_dev_uninit() calls gtp_encap_disable(). Signed-off-by: Taehee Yoo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 1788b85 commit a635037

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/net/gtp.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,6 @@ static void gtp_dellink(struct net_device *dev, struct list_head *head)
694694
{
695695
struct gtp_dev *gtp = netdev_priv(dev);
696696

697-
gtp_encap_disable(gtp);
698697
gtp_hashtable_free(gtp);
699698
list_del_rcu(&gtp->list);
700699
unregister_netdevice_queue(dev, head);

0 commit comments

Comments
 (0)