Patchwork atm: clip: Remove code commented out since eternity.

login
register
mail settings
Submitter David Miller
Date Dec. 2, 2011, 7:27 p.m.
Message ID <20111202.142743.1810798623492596256.davem@davemloft.net>
Download mbox | patch
Permalink /patch/128943/
State Accepted
Delegated to: David Miller
Headers show

Comments

David Miller - Dec. 2, 2011, 7:27 p.m.
Signed-off-by: David S. Miller <davem@davemloft.net>
---

Saw this while auditing dst_set_neighbour() call sites.

 net/atm/clip.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

Patch

diff --git a/net/atm/clip.c b/net/atm/clip.c
index f3b3615..c84ce7f 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -340,15 +340,6 @@  static netdev_tx_t clip_start_xmit(struct sk_buff *skb,
 	}
 	n = dst_get_neighbour(dst);
 	if (!n) {
-#if 0
-		n = clip_find_neighbour(skb_dst(skb), 1);
-		if (!n) {
-			dev_kfree_skb(skb);	/* lost that one */
-			dev->stats.tx_dropped++;
-			return 0;
-		}
-		dst_set_neighbour(dst, n);
-#endif
 		pr_err("NO NEIGHBOUR !\n");
 		dev_kfree_skb(skb);
 		dev->stats.tx_dropped++;