浏览代码

net: Remove dst->next

There are no more users.

Signed-off-by: David S. Miller <davem@davemloft.net>
Reviewed-by: Eric Dumazet <edumazet@google.com>
David Miller 7 年之前
父节点
当前提交
7149f813d1
共有 2 个文件被更改,包括 0 次插入5 次删除
  1. 0 4
      include/net/dst.h
  2. 0 1
      net/core/dst.c

+ 0 - 4
include/net/dst.h

@@ -88,10 +88,6 @@ struct dst_entry {
 #ifndef CONFIG_64BIT
 	atomic_t		__refcnt;	/* 32-bit offset 64 */
 #endif
-
-	union {
-		struct dst_entry	*next;
-	};
 };
 
 struct dst_metrics {

+ 0 - 1
net/core/dst.c

@@ -86,7 +86,6 @@ void dst_init(struct dst_entry *dst, struct dst_ops *ops,
 	dst->__use = 0;
 	dst->lastuse = jiffies;
 	dst->flags = flags;
-	dst->next = NULL;
 	if (!(flags & DST_NOCOUNT))
 		dst_entries_add(ops, 1);
 }