[PATCH 1/2] bonding: remove the unused dummy functions when net poll controller isn't enabled

Subsystems: bonding driver, networking drivers, the rest

STALE5663d

2 messages, 2 authors, 2011-03-07 · open the first message on its own page

[PATCH 1/2] bonding: remove the unused dummy functions when net poll controller isn't enabled

From: Changli Gao <hidden>
Date: 2011-03-03 04:27:01

These two functions are only used when net poll controller is enabled.

Signed-off-by: Changli Gao <redacted>
---
 drivers/net/bonding/bond_main.c |    8 --------
 1 file changed, 8 deletions(-)
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 0592e6d..912b416 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -1380,14 +1380,6 @@ static inline void slave_disable_netpoll(struct slave *slave)
 static void bond_netpoll_cleanup(struct net_device *bond_dev)
 {
 }
-static int bond_netpoll_setup(struct net_device *dev, struct netpoll_info *ni)
-{
-	return 0;
-}
-static struct netpoll_info *bond_netpoll_info(struct bonding *bond)
-{
-	return NULL;
-}
 #endif
 
 /*---------------------------------- IOCTL ----------------------------------*/

Re: [PATCH 1/2] bonding: remove the unused dummy functions when net poll controller isn't enabled

From: David Miller <davem@davemloft.net>
Date: 2011-03-07 23:44:42

From: Changli Gao <redacted>
Date: Thu,  3 Mar 2011 12:26:21 +0800
These two functions are only used when net poll controller is enabled.

Signed-off-by: Changli Gao <redacted>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help