diff options
Diffstat (limited to 'epan/dissectors/packet-fcfcs.c')
-rw-r--r-- | epan/dissectors/packet-fcfcs.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/epan/dissectors/packet-fcfcs.c b/epan/dissectors/packet-fcfcs.c index 5cf14ebc1e..1c268cbcf2 100644 --- a/epan/dissectors/packet-fcfcs.c +++ b/epan/dissectors/packet-fcfcs.c @@ -788,12 +788,10 @@ dissect_fcfcs (tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data) /* Make entries in Protocol column and Info column on summary display */ col_set_str(pinfo->cinfo, COL_PROTOCOL, "FC-FCS"); - if (tree) { - ti = proto_tree_add_protocol_format (tree, proto_fcfcs, tvb, 0, - tvb_reported_length (tvb), - "FCS"); - fcfcs_tree = proto_item_add_subtree (ti, ett_fcfcs); - } + ti = proto_tree_add_protocol_format (tree, proto_fcfcs, tvb, 0, + tvb_reported_length (tvb), + "FCS"); + fcfcs_tree = proto_item_add_subtree (ti, ett_fcfcs); tvb_memcpy (tvb, (guint8 *)&cthdr, offset, FCCT_PRMBL_SIZE); cthdr.revision = tvb_get_guint8 (tvb, offset); |