From 20769a8bee881a71795cc3ba7ef6d2be6799d853 Mon Sep 17 00:00:00 2001 From: Martin Kaiser Date: Sat, 16 Mar 2013 09:37:06 +0000 Subject: no need for if(tree) removed unnecessary initialization svn path=/trunk/; revision=48339 --- epan/dissectors/packet-oipf.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/epan/dissectors/packet-oipf.c b/epan/dissectors/packet-oipf.c index 176f7e3553..abf426bcc7 100644 --- a/epan/dissectors/packet-oipf.c +++ b/epan/dissectors/packet-oipf.c @@ -78,7 +78,7 @@ dissect_oipf_ciplus(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, voi { gint msg_len; proto_item *ti; - proto_tree *oipf_ciplus_tree = NULL; + proto_tree *oipf_ciplus_tree; guint offset = 0; guint8 i, send_datatype_nbr; guint16 dat_len; @@ -90,10 +90,8 @@ dissect_oipf_ciplus(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, voi if (msg_len < 8) return 0; - if (tree) { - ti = proto_tree_add_text(tree, tvb, 0, msg_len, "Open IPTV Forum CSPG-CI+"); - oipf_ciplus_tree = proto_item_add_subtree(ti, ett_oipf_ciplus); - } + ti = proto_tree_add_text(tree, tvb, 0, msg_len, "Open IPTV Forum CSPG-CI+"); + oipf_ciplus_tree = proto_item_add_subtree(ti, ett_oipf_ciplus); proto_tree_add_item(oipf_ciplus_tree, hf_oipf_ciplus_cmd_id, tvb, offset, 1, ENC_BIG_ENDIAN); -- cgit v1.2.1