aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-01-28 16:16:09 +0000
committerBill Meier <wmeier@newsguy.com>2009-01-28 16:16:09 +0000
commit01f889fff8b7da8017dd3ab32f20ec0a233d602d (patch)
treeb34f13e058f98b25564ba15fb49baff4cfe03303
parent3116c7d051634b57457ed9c2db64e447f30ce4dd (diff)
downloadwireshark-01f889fff8b7da8017dd3ab32f20ec0a233d602d.tar.gz
wireshark-01f889fff8b7da8017dd3ab32f20ec0a233d602d.tar.bz2
wireshark-01f889fff8b7da8017dd3ab32f20ec0a233d602d.zip
Remove unnecessary code from proto_reg_handoff....
svn path=/trunk/; revision=27318
-rw-r--r--epan/dissectors/packet-e100.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/epan/dissectors/packet-e100.c b/epan/dissectors/packet-e100.c
index 859eddc2bc..6f966e473a 100644
--- a/epan/dissectors/packet-e100.c
+++ b/epan/dissectors/packet-e100.c
@@ -32,7 +32,6 @@
static int proto_e100 = -1;
-static dissector_handle_t e100_handle;
static dissector_handle_t eth_handle;
/* Dissector tree globals */
@@ -216,14 +215,8 @@ proto_register_e100(void)
void
proto_reg_handoff_e100(void)
{
- static gboolean initialized = FALSE;
- if (!initialized)
- {
- e100_handle = new_create_dissector_handle(dissect_e100, proto_e100);
- /* Check all UDP traffic, as the specific UDP port is configurable */
- heur_dissector_add("udp", dissect_e100, proto_e100);
- /* e100 traffic encapsulates traffic from the ethernet frame on */
- eth_handle = find_dissector("eth");
- initialized = TRUE;
- }
+ /* Check all UDP traffic, as the specific UDP port is configurable */
+ heur_dissector_add("udp", dissect_e100, proto_e100);
+ /* e100 traffic encapsulates traffic from the ethernet frame on */
+ eth_handle = find_dissector("eth");
}