Skip to contentSkip to conversation

mpls: get rid of trivial returns

PATCH Applied Stephen Hemminger 2 participants 2 messages Sep 1, 2016

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mpls: get rid of trivial returns

return at end of function is useless.

---
 net/mpls/af_mpls.c | 5 -----
 1 file changed, 5 deletions(-)
net/mpls/af_mpls.c +0 -5
index 5c161e7..0e4334c 100644
@@ -961,9 +961,6 @@ static void mpls_ifdown(struct net_device *dev, int event)
 				RCU_INIT_POINTER(nh->nh_dev, NULL);
 		} endfor_nexthops(rt);
 	}
-
-
-	return;
 }
 
 static 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)
 
 		ACCESS_ONCE(rt->rt_nhn_alive) = alive;
 	}
-
-	return;
 }
 
 static int mpls_dev_notify(struct notifier_block *this, unsigned long event,
Signature · 1 line
2.9.3