aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-elcom.c
diff options
context:
space:
mode:
authorMichael Mann <mmann78@netscape.net>2013-06-14 01:02:11 +0000
committerMichael Mann <mmann78@netscape.net>2013-06-14 01:02:11 +0000
commit0f0c111119811cf1c6c9353efdaaef302aca5930 (patch)
tree1184b3876ae3b638c401313def0c8172b475b3f0 /epan/dissectors/packet-elcom.c
parentaf02ac36ac6dd2d6b97c904db7cc26e8395230e0 (diff)
Remove check_col() and the occasional tree.
svn path=/trunk/; revision=49920
Diffstat (limited to 'epan/dissectors/packet-elcom.c')
-rw-r--r--epan/dissectors/packet-elcom.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/epan/dissectors/packet-elcom.c b/epan/dissectors/packet-elcom.c
index 0870ba1f99..4dd8b73409 100644
--- a/epan/dissectors/packet-elcom.c
+++ b/epan/dissectors/packet-elcom.c
@@ -429,14 +429,14 @@ dissect_elcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
is_request = (pinfo->match_port == pinfo->destport);
elcom_len = tvb_get_ntohs(tvb, 0);
length_ok = (tvb_reported_length(tvb) == (elcom_len+2));
- if (check_col(pinfo->cinfo, COL_INFO)) {
- col_add_fstr(pinfo->cinfo, COL_INFO, "%s Len=%d%s",
+
+ col_add_fstr(pinfo->cinfo, COL_INFO, "%s Len=%d%s",
is_request ? "Request" : "Response",
elcom_len,
length_ok ? "" : " (incorrect)");
- elcom_msg_type = tvb_get_guint8(tvb, 2);
- switch (elcom_msg_type) {
+ elcom_msg_type = tvb_get_guint8(tvb, 2);
+ switch (elcom_msg_type) {
case P_CONRQ:
case P_CONRS:
@@ -474,7 +474,6 @@ dissect_elcom(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
case P_RELRS:
col_append_str(pinfo->cinfo, COL_INFO, " Response");
break;
- }
}
if (!tree)