aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-componentstatus.c
diff options
context:
space:
mode:
authorwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-12 20:17:43 +0000
committerwmeier <wmeier@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-12 20:17:43 +0000
commitebc1bc3a6cd4d2ded09ef61bf2d9cb108c989d6e (patch)
treeb29d7d235fb2eb96c66d10b3c582936ee030cb90 /epan/dissectors/packet-componentstatus.c
parentedb4fdbd8ed9edcd7bc1961f20aaa1472d70f79e (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-componentstatus.c')
-rw-r--r--epan/dissectors/packet-componentstatus.c6
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) {