DORMANTno replies

[PATCH 1/1] bonding: remove unnecessary return

From: Zhu Yanjun <hidden>
Date: 2017-04-20 04:08:38
Subsystem: bonding driver, networking drivers, the rest · Maintainers: Jay Vosburgh, Andrew Lunn, "David S. Miller", Eric Dumazet, Jakub Kicinski, Paolo Abeni, Linus Torvalds

The type of the function bond_update_speed_duplex is void.
So the return in the end of the function should be removed.

Signed-off-by: Zhu Yanjun <redacted>
---
 drivers/net/bonding/bond_main.c | 2 --
 1 file changed, 2 deletions(-)
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 8a4ba8b..af9f0ce 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -399,8 +399,6 @@ static void bond_update_speed_duplex(struct slave *slave)
 
 	slave->speed = ecmd.base.speed;
 	slave->duplex = ecmd.base.duplex;
-
-	return;
 }
 
 const char *bond_slave_link_status(s8 link)
-- 
2.7.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help