net: remove struct neigh_table::pde
Subsystems (2)
PATCH 1/1 net: remove struct neigh_table::pde
->pde isn't actually needed, since name is stashed in ->id.
Signed-off-by Alexey Dobriyan <[email protected]>
---
include/net/neighbour.h | 3 --- net/core/neighbour.c | 5 ++--- 2 files changed, 2 insertions(+), 6 deletions(-)
include/net/neighbour.h +0 -3
@@ -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() */
net/core/neighbour.c +2 -3
@@ -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
From: Alexey Dobriyan <[email protected]>
Date: Tue, 11 Nov 2008 15:07:40 +0300
Quoted 3 lines
->pde isn't actually needed, since name is stashed in ->id.
Signed-off-by Alexey Dobriyan <[email protected]>
Applied, thanks.