From ffa7320de25b5bcb606b76a3cfd33bae52a2eab4 Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Fri, 26 Sep 2008 20:06:40 +0000 Subject: Minor cleanup related to proto_register & proto_reg_handoff svn path=/trunk/; revision=26280 --- epan/dissectors/packet-linx.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'epan/dissectors/packet-linx.c') 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)); -- cgit v1.2.3