no need for if(tree)

removed unnecessary initialization

svn path=/trunk/; revision=48339
This commit is contained in:
Martin Kaiser 2013-03-16 09:37:06 +00:00
parent 5a85b7fed2
commit 20769a8bee
1 changed files with 3 additions and 5 deletions

View File

@ -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);