aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcfzs.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-fcfzs.c
parentaf02ac36ac6dd2d6b97c904db7cc26e8395230e0 (diff)
Remove check_col() and the occasional tree.
svn path=/trunk/; revision=49920
Diffstat (limited to 'epan/dissectors/packet-fcfzs.c')
-rw-r--r--epan/dissectors/packet-fcfzs.c43
1 files changed, 18 insertions, 25 deletions
diff --git a/epan/dissectors/packet-fcfzs.c b/epan/dissectors/packet-fcfzs.c
index 030200134f..140ac562d0 100644
--- a/epan/dissectors/packet-fcfzs.c
+++ b/epan/dissectors/packet-fcfzs.c
@@ -665,10 +665,9 @@ dissect_fcfzs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
g_hash_table_insert(fcfzs_req_hash, req_key, cdata);
}
- if (check_col(pinfo->cinfo, COL_INFO)) {
- col_add_str(pinfo->cinfo, COL_INFO, val_to_str(opcode, fc_fzs_opcode_val,
+
+ col_add_str(pinfo->cinfo, COL_INFO, val_to_str(opcode, fc_fzs_opcode_val,
"0x%x"));
- }
}
else {
/* Opcode is ACC or RJT */
@@ -677,12 +676,10 @@ dissect_fcfzs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
pinfo->rxid, NO_PORT2);
isreq = FALSE;
if (!conversation) {
- if (tree && (opcode == FCCT_MSG_ACC)) {
- if (check_col(pinfo->cinfo, COL_INFO)) {
- col_add_str(pinfo->cinfo, COL_INFO,
+ if (opcode == FCCT_MSG_ACC) {
+ col_add_str(pinfo->cinfo, COL_INFO,
val_to_str(opcode, fc_fzs_opcode_val,
"0x%x"));
- }
/* No record of what this accept is for. Can't decode */
proto_tree_add_text(fcfzs_tree, tvb, 0, tvb_length(tvb),
"No record of Exchg. Unable to decode MSG_ACC");
@@ -701,26 +698,22 @@ dissect_fcfzs(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
failed_opcode = cdata->opcode;
}
- if (check_col(pinfo->cinfo, COL_INFO)) {
- if (opcode != FCCT_MSG_RJT) {
- col_add_fstr(pinfo->cinfo, COL_INFO, "MSG_ACC (%s)",
- val_to_str(opcode,
- fc_fzs_opcode_val, "0x%x"));
- }
- else {
- col_add_fstr(pinfo->cinfo, COL_INFO, "MSG_RJT (%s)",
- val_to_str(failed_opcode,
- fc_fzs_opcode_val, "0x%x"));
- }
+ if (opcode != FCCT_MSG_RJT) {
+ col_add_fstr(pinfo->cinfo, COL_INFO, "MSG_ACC (%s)",
+ val_to_str(opcode,
+ fc_fzs_opcode_val, "0x%x"));
+ }
+ else {
+ col_add_fstr(pinfo->cinfo, COL_INFO, "MSG_RJT (%s)",
+ val_to_str(failed_opcode,
+ fc_fzs_opcode_val, "0x%x"));
}
- if (tree) {
- if ((cdata == NULL) && (opcode != FCCT_MSG_RJT)) {
- /* No record of what this accept is for. Can't decode */
- proto_tree_add_text(fcfzs_tree, tvb, 0, tvb_length(tvb),
- "No record of Exchg. Unable to decode MSG_ACC/RJT");
- return;
- }
+ if ((cdata == NULL) && (opcode != FCCT_MSG_RJT)) {
+ /* No record of what this accept is for. Can't decode */
+ proto_tree_add_text(fcfzs_tree, tvb, 0, tvb_length(tvb),
+ "No record of Exchg. Unable to decode MSG_ACC/RJT");
+ return;
}
}
}