aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-netperfmeter.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2011-11-12 20:17:43 +0000
committerBill Meier <wmeier@newsguy.com>2011-11-12 20:17:43 +0000
commitd38970f73f886a66bdab57481796a006d4bbc277 (patch)
treeb29d7d235fb2eb96c66d10b3c582936ee030cb90 /epan/dissectors/packet-netperfmeter.c
parentf5d913ac846d11d0f8b562ae7b0ef4d81d3b3ea7 (diff)
Remove some unneeded 'if(pinfo)' tests;
Remove some unneeded forward refs. svn path=/trunk/; revision=39809
Diffstat (limited to 'epan/dissectors/packet-netperfmeter.c')
-rw-r--r--epan/dissectors/packet-netperfmeter.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-netperfmeter.c b/epan/dissectors/packet-netperfmeter.c
index d1a50e9f05..5ccbb8db21 100644
--- a/epan/dissectors/packet-netperfmeter.c
+++ b/epan/dissectors/packet-netperfmeter.c
@@ -374,7 +374,7 @@ dissect_npmp_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *npmp
guint8 type;
type = tvb_get_guint8(message_tvb, offset_message_type);
- if (pinfo && (check_col(pinfo->cinfo, COL_INFO))) {
+ if (check_col(pinfo->cinfo, COL_INFO)) {
col_add_fstr(pinfo->cinfo, COL_INFO, "%s ", val_to_str(type, message_type_values, "Unknown NetPerfMeterProtocol type"));
}
@@ -417,9 +417,7 @@ dissect_npmp(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree)
proto_item *npmp_item;
proto_tree *npmp_tree;
- /* pinfo is NULL only if dissect_npmp_message is called from dissect_error cause */
- if (pinfo)
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "NetPerfMeterProtocol");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "NetPerfMeterProtocol");
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */