diff options
Diffstat (limited to 'plugins/wimax/msg_pmc.c')
-rw-r--r-- | plugins/wimax/msg_pmc.c | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/plugins/wimax/msg_pmc.c b/plugins/wimax/msg_pmc.c index 64a6435f1f..f55ae7b15b 100644 --- a/plugins/wimax/msg_pmc.c +++ b/plugins/wimax/msg_pmc.c @@ -172,26 +172,20 @@ void proto_register_mac_mgmt_msg_pmc_req(void) } }; - if (proto_mac_mgmt_msg_pmc_req_decoder == -1) { - proto_mac_mgmt_msg_pmc_req_decoder = proto_register_protocol ( - "WiMax PMC-REQ/RSP Messages", /* name */ - "WiMax PMC-REQ/RSP (pmc)", /* short name */ - "wmx.pmc" /* abbrev */ - ); + proto_mac_mgmt_msg_pmc_req_decoder = proto_register_protocol ( + "WiMax PMC-REQ/RSP Messages", /* name */ + "WiMax PMC-REQ/RSP (pmc)", /* short name */ + "wmx.pmc" /* abbrev */ + ); - proto_register_field_array(proto_mac_mgmt_msg_pmc_req_decoder, hf, array_length(hf)); - proto_register_subtree_array(ett, array_length(ett)); - } + proto_register_field_array(proto_mac_mgmt_msg_pmc_req_decoder, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); } /* Register Wimax Mac Payload Protocol and Dissector */ void proto_register_mac_mgmt_msg_pmc_rsp(void) { - if (proto_mac_mgmt_msg_pmc_rsp_decoder == -1) { - proto_mac_mgmt_msg_pmc_rsp_decoder = proto_mac_mgmt_msg_pmc_req_decoder; - - proto_register_subtree_array(ett, array_length(ett)); - } + proto_mac_mgmt_msg_pmc_rsp_decoder = proto_mac_mgmt_msg_pmc_req_decoder; } /* Decode PMC-REQ messages. */ |