diff options
author | Florian Westphal <fw@strlen.de> | 2014-02-18 16:35:34 -0500 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-02-25 05:30:01 -0500 |
commit | 39111fd261f544acb0333d59fca27abc2f767ad7 (patch) | |
tree | b33a6e9f9b1fba0318220a146f14bb31159f4374 | |
parent | e0abdadcc6e113ed2e22c85b350074487095875b (diff) |
netfilter: nfnetlink_log: remove unused code
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
-rw-r--r-- | net/netfilter/nfnetlink_log.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c index a155d19a225e..d292c8d286eb 100644 --- a/net/netfilter/nfnetlink_log.c +++ b/net/netfilter/nfnetlink_log.c | |||
@@ -28,8 +28,6 @@ | |||
28 | #include <linux/proc_fs.h> | 28 | #include <linux/proc_fs.h> |
29 | #include <linux/security.h> | 29 | #include <linux/security.h> |
30 | #include <linux/list.h> | 30 | #include <linux/list.h> |
31 | #include <linux/jhash.h> | ||
32 | #include <linux/random.h> | ||
33 | #include <linux/slab.h> | 31 | #include <linux/slab.h> |
34 | #include <net/sock.h> | 32 | #include <net/sock.h> |
35 | #include <net/netfilter/nf_log.h> | 33 | #include <net/netfilter/nf_log.h> |
@@ -75,7 +73,6 @@ struct nfulnl_instance { | |||
75 | }; | 73 | }; |
76 | 74 | ||
77 | #define INSTANCE_BUCKETS 16 | 75 | #define INSTANCE_BUCKETS 16 |
78 | static unsigned int hash_init; | ||
79 | 76 | ||
80 | static int nfnl_log_net_id __read_mostly; | 77 | static int nfnl_log_net_id __read_mostly; |
81 | 78 | ||
@@ -1067,11 +1064,6 @@ static int __init nfnetlink_log_init(void) | |||
1067 | { | 1064 | { |
1068 | int status = -ENOMEM; | 1065 | int status = -ENOMEM; |
1069 | 1066 | ||
1070 | /* it's not really all that important to have a random value, so | ||
1071 | * we can do this from the init function, even if there hasn't | ||
1072 | * been that much entropy yet */ | ||
1073 | get_random_bytes(&hash_init, sizeof(hash_init)); | ||
1074 | |||
1075 | netlink_register_notifier(&nfulnl_rtnl_notifier); | 1067 | netlink_register_notifier(&nfulnl_rtnl_notifier); |
1076 | status = nfnetlink_subsys_register(&nfulnl_subsys); | 1068 | status = nfnetlink_subsys_register(&nfulnl_subsys); |
1077 | if (status < 0) { | 1069 | if (status < 0) { |