Commit 9b739ba5e66c96938fbc07a4dbd9da5b81eac56f

Authored by Alexey Dobriyan
Committed by David S. Miller
1 parent 7e452baf6b

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>

Showing 2 changed files with 2 additions and 6 deletions Side-by-side Diff

include/net/neighbour.h
... ... @@ -180,9 +180,6 @@
180 180 __u32 hash_rnd;
181 181 unsigned int hash_chain_gc;
182 182 struct pneigh_entry **phash_buckets;
183   -#ifdef CONFIG_PROC_FS
184   - struct proc_dir_entry *pde;
185   -#endif
186 183 };
187 184  
188 185 /* flags for neigh_update() */
net/core/neighbour.c
... ... @@ -1424,9 +1424,8 @@
1424 1424 panic("cannot create neighbour cache statistics");
1425 1425  
1426 1426 #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))
1430 1429 panic("cannot create neighbour proc dir entry");
1431 1430 #endif
1432 1431