diff options
author | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-11-12 20:17:43 +0000 |
---|---|---|
committer | wmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7> | 2011-11-12 20:17:43 +0000 |
commit | ebc1bc3a6cd4d2ded09ef61bf2d9cb108c989d6e (patch) | |
tree | b29d7d235fb2eb96c66d10b3c582936ee030cb90 /epan/dissectors/packet-fractalgeneratorprotocol.c | |
parent | edb4fdbd8ed9edcd7bc1961f20aaa1472d70f79e (diff) |
Remove some unneeded 'if(pinfo)' tests;
Remove some unneeded forward refs.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39809 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-fractalgeneratorprotocol.c')
-rw-r--r-- | epan/dissectors/packet-fractalgeneratorprotocol.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/epan/dissectors/packet-fractalgeneratorprotocol.c b/epan/dissectors/packet-fractalgeneratorprotocol.c index fba74b334a..b01bb3e7bc 100644 --- a/epan/dissectors/packet-fractalgeneratorprotocol.c +++ b/epan/dissectors/packet-fractalgeneratorprotocol.c @@ -61,10 +61,6 @@ static int hf_buffer = -1; /* Initialize the subtree pointers */ static gint ett_fractalgeneratorprotocol = -1; -static void -dissect_fractalgeneratorprotocol_message(tvbuff_t *, packet_info *, proto_tree *); - - /* Dissectors for messages. This is specific to FractalGeneratorProtocol */ #define MESSAGE_TYPE_LENGTH 1 #define MESSAGE_FLAGS_LENGTH 1 @@ -155,7 +151,7 @@ dissect_fractalgeneratorprotocol_message(tvbuff_t *message_tvb, packet_info *pin guint8 type; type = tvb_get_guint8(message_tvb, MESSAGE_TYPE_OFFSET); - 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 FractalGeneratorProtocol type")); } proto_tree_add_item(fractalgeneratorprotocol_tree, hf_message_type, message_tvb, MESSAGE_TYPE_OFFSET, MESSAGE_TYPE_LENGTH, ENC_BIG_ENDIAN); @@ -177,9 +173,7 @@ dissect_fractalgeneratorprotocol(tvbuff_t *message_tvb, packet_info *pinfo, prot proto_item *fractalgeneratorprotocol_item; proto_tree *fractalgeneratorprotocol_tree; - /* pinfo is NULL only if dissect_fractalgeneratorprotocol_message is called from dissect_error cause */ - if (pinfo) - col_set_str(pinfo->cinfo, COL_PROTOCOL, "FractalGeneratorProtocol"); + col_set_str(pinfo->cinfo, COL_PROTOCOL, "FractalGeneratorProtocol"); /* In the interest of speed, if "tree" is NULL, don't do any work not necessary to generate protocol tree items. */ |