From dfa2156e301539929a12dda54752c778c3ee7a39 Mon Sep 17 00:00:00 2001 From: Michael Mann Date: Fri, 14 Jun 2013 02:50:46 +0000 Subject: Remove check_col() and the occasional tree. svn path=/trunk/; revision=49923 --- epan/dissectors/packet-wtls.c | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'epan/dissectors/packet-wtls.c') diff --git a/epan/dissectors/packet-wtls.c b/epan/dissectors/packet-wtls.c index df79c656e6..86770526b9 100644 --- a/epan/dissectors/packet-wtls.c +++ b/epan/dissectors/packet-wtls.c @@ -331,17 +331,14 @@ dissect_wtls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) proto_tree *wtls_rec_tree; proto_tree *wtls_msg_type_tree; - if (check_col(pinfo->cinfo, COL_PROTOCOL)) + switch ( pinfo->match_uint ) { - switch ( pinfo->match_uint ) - { - case UDP_PORT_WTLS_WSP: - col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WSP" ); - break; - case UDP_PORT_WTLS_WTP_WSP: - col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WTP+WSP" ); - break; - } + case UDP_PORT_WTLS_WSP: + col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WSP" ); + break; + case UDP_PORT_WTLS_WTP_WSP: + col_set_str(pinfo->cinfo, COL_PROTOCOL, "WTLS+WTP+WSP" ); + break; } /* Develop the string to put in the Info column */ -- cgit v1.2.3