summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2008-11-11 16:47:44 -0800
committerDavid S. Miller <davem@davemloft.net>2008-11-11 16:47:44 -0800
commit9b739ba5e66c96938fbc07a4dbd9da5b81eac56f (patch)
tree7a9fe83f69aac8b870144ee90a2b6071a3f96165
parent7e452baf6b96b5aeba097afd91501d33d390cc97 (diff)
downloadop-kernel-dev-9b739ba5e66c96938fbc07a4dbd9da5b81eac56f.zip
op-kernel-dev-9b739ba5e66c96938fbc07a4dbd9da5b81eac56f.tar.gz
net: remove struct neigh_table::pde
->pde isn't actually needed, since name is stashed in ->id. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/net/neighbour.h3
-rw-r--r--net/core/neighbour.c5
2 files changed, 2 insertions, 6 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h
index aa4b708..365b5e2 100644
--- a/include/net/neighbour.h
+++ b/include/net/neighbour.h
@@ -180,9 +180,6 @@ struct neigh_table
__u32 hash_rnd;
unsigned int hash_chain_gc;
struct pneigh_entry **phash_buckets;
-#ifdef CONFIG_PROC_FS
- struct proc_dir_entry *pde;
-#endif
};
/* flags for neigh_update() */
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index d9bbe01..500c243 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -1424,9 +1424,8 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl)
panic("cannot create neighbour cache statistics");
#ifdef CONFIG_PROC_FS
- tbl->pde = proc_create_data(tbl->id, 0, init_net.proc_net_stat,
- &neigh_stat_seq_fops, tbl);
- if (!tbl->pde)
+ if (!proc_create_data(tbl->id, 0, init_net.proc_net_stat,
+ &neigh_stat_seq_fops, tbl))
panic("cannot create neighbour proc dir entry");
#endif
OpenPOWER on IntegriCloud