aboutsummaryrefslogtreecommitdiffstats
path: root/net/mpls/af_mpls.c
diff options
context:
space:
mode:
authorstephen hemminger <stephen@networkplumber.org>2016-09-01 11:51:07 -0400
committerDavid S. Miller <davem@davemloft.net>2016-09-01 13:13:15 -0400
commitce927bf174b69328e953a77730e12065c19e87cb (patch)
treedc0e5220677444d83dd7647780a6070da9ca7cce /net/mpls/af_mpls.c
parentba3d0dda6d5facd6fe63a3276825bd2b9fa2990e (diff)
mpls: get rid of trivial returns
return at end of function is useless. Signed-off-by: Stephen Hemminger <stephen@networkplumber.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mpls/af_mpls.c')
-rw-r--r--net/mpls/af_mpls.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 5c161e7759b5..0e4334cbde17 100644
--- a/net/mpls/af_mpls.c
+++ b/net/mpls/af_mpls.c
@@ -961,9 +961,6 @@ static void mpls_ifdown(struct net_device *dev, int event)
961 RCU_INIT_POINTER(nh->nh_dev, NULL); 961 RCU_INIT_POINTER(nh->nh_dev, NULL);
962 } endfor_nexthops(rt); 962 } endfor_nexthops(rt);
963 } 963 }
964
965
966 return;
967} 964}
968 965
969static void mpls_ifup(struct net_device *dev, unsigned int nh_flags) 966static void mpls_ifup(struct net_device *dev, unsigned int nh_flags)
@@ -997,8 +994,6 @@ static void mpls_ifup(struct net_device *dev, unsigned int nh_flags)
997 994
998 ACCESS_ONCE(rt->rt_nhn_alive) = alive; 995 ACCESS_ONCE(rt->rt_nhn_alive) = alive;
999 } 996 }
1000
1001 return;
1002} 997}
1003 998
1004static int mpls_dev_notify(struct notifier_block *this, unsigned long event, 999static int mpls_dev_notify(struct notifier_block *this, unsigned long event,