]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
net: remove struct neigh_table::pde
authorAlexey Dobriyan <adobriyan@gmail.com>
Wed, 12 Nov 2008 00:47:44 +0000 (16:47 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Nov 2008 00:47:44 +0000 (16:47 -0800)
->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>
include/net/neighbour.h
net/core/neighbour.c

index aa4b708654a497a318732f7c5cfb6f00fdc65d1a..365b5e260239b2631d2f502340f0d8bd667a344d 100644 (file)
@@ -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() */
index d9bbe010e0ee87e06bfc3b9b608ccf22c900bb60..500c2430007cd9047b3d27de4d7b6b32e616011c 100644 (file)
@@ -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