no need for if(tree)

Change-Id: I529a601ce83c446247cee1e87386622462f24f56
Reviewed-on: https://code.wireshark.org/review/4896
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
This commit is contained in:
Martin Kaiser 2014-10-21 19:39:39 +02:00
parent 5f6be84c18
commit b757038160
1 changed files with 4 additions and 8 deletions

View File

@ -489,7 +489,8 @@ static int
dissect_usb_audio_bulk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, void *data)
{
usb_conv_info_t *usb_conv_info;
proto_tree *tree = NULL;
proto_tree *tree;
proto_item *ti;
gint offset;
guint length = tvb_length(tvb);
@ -501,13 +502,8 @@ dissect_usb_audio_bulk(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tre
col_set_str(pinfo->cinfo, COL_PROTOCOL, "USBAUDIO");
if (parent_tree)
{
proto_item *ti;
ti = proto_tree_add_protocol_format(parent_tree, proto_usb_audio, tvb, 0, -1, "USB Audio");
tree = proto_item_add_subtree(ti, ett_usb_audio);
}
ti = proto_tree_add_protocol_format(parent_tree, proto_usb_audio, tvb, 0, -1, "USB Audio");
tree = proto_item_add_subtree(ti, ett_usb_audio);
switch (usb_conv_info->interfaceSubclass)
{