aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-linx.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-09-26 20:06:40 +0000
committerBill Meier <wmeier@newsguy.com>2008-09-26 20:06:40 +0000
commitffa7320de25b5bcb606b76a3cfd33bae52a2eab4 (patch)
treed66f6adcd622b89f5972d7caefee9cb897772f21 /epan/dissectors/packet-linx.c
parenta14b7b5264bb5f0f3f3784d1bd667675e7443447 (diff)
Minor cleanup related to proto_register & proto_reg_handoff
svn path=/trunk/; revision=26280
Diffstat (limited to 'epan/dissectors/packet-linx.c')
-rw-r--r--epan/dissectors/packet-linx.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/epan/dissectors/packet-linx.c b/epan/dissectors/packet-linx.c
index 49ec80ddb4..a65136f3ba 100644
--- a/epan/dissectors/packet-linx.c
+++ b/epan/dissectors/packet-linx.c
@@ -730,13 +730,11 @@ proto_register_linx(void)
&ett_linx_ack
};
- if (proto_linx == -1) {
- proto_linx = proto_register_protocol (
- "ENEA LINX", /* name */
- "LINX", /* short name */
- "linx" /* abbrev */
- );
- }
+ proto_linx = proto_register_protocol (
+ "ENEA LINX", /* name */
+ "LINX", /* short name */
+ "linx" /* abbrev */
+ );
/* Protocol Registering data structures. */
proto_register_field_array(proto_linx, hf, array_length(hf));