aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-scriptingservice.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-scriptingservice.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-scriptingservice.c')
-rw-r--r--epan/dissectors/packet-scriptingservice.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/epan/dissectors/packet-scriptingservice.c b/epan/dissectors/packet-scriptingservice.c
index 8d72f901f3..40a150a5ef 100644
--- a/epan/dissectors/packet-scriptingservice.c
+++ b/epan/dissectors/packet-scriptingservice.c
@@ -53,10 +53,6 @@ static int hf_environment_u_bit = -1;
static gint ett_ssprotocol = -1;
static gint ett_environment_flags = -1;
-static guint
-dissect_ssprotocol_message(tvbuff_t *, packet_info *, proto_tree *);
-
-
/* Dissectors for messages. This is specific to ScriptingServiceProtocol */
#define MESSAGE_TYPE_LENGTH 1
#define MESSAGE_FLAGS_LENGTH 1
@@ -124,7 +120,7 @@ dissect_ssprotocol_message(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree
guint total_length;
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 SSP type: %u"));
}
proto_tree_add_item(ssprotocol_tree, hf_message_type, message_tvb, MESSAGE_TYPE_OFFSET, MESSAGE_TYPE_LENGTH, ENC_BIG_ENDIAN);
@@ -182,9 +178,7 @@ dissect_ssprotocol(tvbuff_t *message_tvb, packet_info *pinfo, proto_tree *tree)
proto_item *ssprotocol_item;
proto_tree *ssprotocol_tree;
- /* pinfo is NULL only if dissect_ssprotocol_message is called from dissect_error cause */
- if (pinfo)
- col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSP");
+ col_set_str(pinfo->cinfo, COL_PROTOCOL, "SSP");
/* In the interest of speed, if "tree" is NULL, don't do any work not
necessary to generate protocol tree items. */