diff options
author | Bill Meier <wmeier@newsguy.com> | 2011-11-12 20:17:43 +0000 |
---|---|---|
committer | Bill Meier <wmeier@newsguy.com> | 2011-11-12 20:17:43 +0000 |
commit | d38970f73f886a66bdab57481796a006d4bbc277 (patch) | |
tree | b29d7d235fb2eb96c66d10b3c582936ee030cb90 /epan/dissectors/packet-componentstatus.c | |
parent | f5d913ac846d11d0f8b562ae7b0ef4d81d3b3ea7 (diff) |
Remove some unneeded 'if(pinfo)' tests;
Remove some unneeded forward refs.
svn path=/trunk/; revision=39809
Diffstat (limited to 'epan/dissectors/packet-componentstatus.c')
-rw-r--r-- | epan/dissectors/packet-componentstatus.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-componentstatus.c b/epan/dissectors/packet-componentstatus.c index 94482a35f1..8ad89b4926 100644 --- a/epan/dissectors/packet-componentstatus.c +++ b/epan/dissectors/packet-componentstatus.c @@ -232,10 +232,8 @@ dissect_componentstatusprotocol(tvbuff_t *message_tvb, packet_info *pinfo, proto return(0); } - /* pinfo is NULL only if dissect_componentstatusprotocol_message is called from dissect_error cause */ - if (pinfo) { - col_set_str(pinfo->cinfo, COL_PROTOCOL, "ComponentStatusProtocol"); - } + col_set_str(pinfo->cinfo, COL_PROTOCOL, "ComponentStatusProtocol"); + /* In the interest of speed, if "tree" is NULL, don't do any work not necessary to generate protocol tree items. */ if (tree) { |