All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] mpls: get rid of trivial returns
@ 2016-09-01 15:51 Stephen Hemminger
  2016-09-01 17:14 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Stephen Hemminger @ 2016-09-01 15:51 UTC (permalink / raw)
  To: David Miller, Robert Shearman, Roopa Prabhu, Simon Horman; +Cc: netdev

return at end of function is useless.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 net/mpls/af_mpls.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/net/mpls/af_mpls.c b/net/mpls/af_mpls.c
index 5c161e7..0e4334c 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)
 				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,
-- 
2.9.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH net-next] mpls: get rid of trivial returns
  2016-09-01 15:51 [PATCH net-next] mpls: get rid of trivial returns Stephen Hemminger
@ 2016-09-01 17:14 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2016-09-01 17:14 UTC (permalink / raw)
  To: stephen; +Cc: rshearma, roopa, simon.horman, netdev

From: Stephen Hemminger <stephen@networkplumber.org>
Date: Thu, 1 Sep 2016 08:51:07 -0700

> return at end of function is useless.
> 
> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>

Applied.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-09-01 22:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-01 15:51 [PATCH net-next] mpls: get rid of trivial returns Stephen Hemminger
2016-09-01 17:14 ` David Miller

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.