Skip to content

Commit 9b739ba

Browse files
Alexey Dobriyandavem330
authored andcommitted
net: remove struct neigh_table::pde
->pde isn't actually needed, since name is stashed in ->id. Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7e452ba commit 9b739ba

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

include/net/neighbour.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,6 @@ struct neigh_table
180180
__u32 hash_rnd;
181181
unsigned int hash_chain_gc;
182182
struct pneigh_entry **phash_buckets;
183-
#ifdef CONFIG_PROC_FS
184-
struct proc_dir_entry *pde;
185-
#endif
186183
};
187184

188185
/* flags for neigh_update() */

net/core/neighbour.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,9 +1424,8 @@ void neigh_table_init_no_netlink(struct neigh_table *tbl)
14241424
panic("cannot create neighbour cache statistics");
14251425

14261426
#ifdef CONFIG_PROC_FS
1427-
tbl->pde = proc_create_data(tbl->id, 0, init_net.proc_net_stat,
1428-
&neigh_stat_seq_fops, tbl);
1429-
if (!tbl->pde)
1427+
if (!proc_create_data(tbl->id, 0, init_net.proc_net_stat,
1428+
&neigh_stat_seq_fops, tbl))
14301429
panic("cannot create neighbour proc dir entry");
14311430
#endif
14321431

0 commit comments

Comments
 (0)