aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-usb.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2014-08-28 18:39:02 +0200
committerMartin Kaiser <wireshark@kaiser.cx>2014-11-02 21:17:41 +0000
commitbea82998029f05d5fb8d39601fd52d5c721a682c (patch)
tree36d168761624e18577f7aaefa15fb0c6584303a2 /epan/dissectors/packet-usb.c
parent179a9b51065a7e027e1b77e7b5cf6fd4e98f41d4 (diff)
remove parent parameter from try_dissect_next_protocol()
Change-Id: Ib05b67c8741f90444e773e7c9e1378f00f41dad7 Reviewed-on: https://code.wireshark.org/review/5083 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-usb.c')
-rw-r--r--epan/dissectors/packet-usb.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/epan/dissectors/packet-usb.c b/epan/dissectors/packet-usb.c
index 390c4567c7..6495899bdb 100644
--- a/epan/dissectors/packet-usb.c
+++ b/epan/dissectors/packet-usb.c
@@ -2636,7 +2636,7 @@ usb_tap_queue_packet(packet_info *pinfo, guint8 urb_type,
static gint
-try_dissect_next_protocol(proto_tree *tree, proto_tree *parent, tvbuff_t *next_tvb, packet_info *pinfo,
+try_dissect_next_protocol(proto_tree *tree, tvbuff_t *next_tvb, packet_info *pinfo,
usb_conv_info_t *usb_conv_info, guint8 urb_type)
{
gboolean ret;
@@ -2652,10 +2652,13 @@ try_dissect_next_protocol(proto_tree *tree, proto_tree *parent, tvbuff_t *next_t
device_product_data_t *device_product_data;
device_protocol_data_t *device_protocol_data;
guint8 ctrl_recip;
+ proto_tree *parent;
if (tvb_captured_length(next_tvb) == 0)
return 0;
+ parent = proto_tree_get_parent_tree(tree);
+
/* try dissect by "usb.device" */
ret = dissector_try_uint_new(device_to_dissector,
(guint32)(usb_conv_info->bus_id<<16 | usb_conv_info->device_address),
@@ -2824,7 +2827,7 @@ dissect_usb_setup_response(packet_info *pinfo, proto_tree *tree,
/* Try to find a non-standard specific dissector */
if (tvb_reported_length_remaining(tvb, offset) > 0) {
next_tvb = tvb_new_subset_remaining(tvb, offset);
- offset += try_dissect_next_protocol(tree, parent, next_tvb, pinfo, usb_conv_info, urb_type);
+ offset += try_dissect_next_protocol(tree, next_tvb, pinfo, usb_conv_info, urb_type);
}
length_remaining = tvb_reported_length_remaining(tvb, offset);
@@ -2947,7 +2950,7 @@ dissect_usb_setup_request(packet_info *pinfo, proto_tree *tree,
tvb_composite_finalize(next_tvb);
- offset += try_dissect_next_protocol(tree, parent, next_tvb, pinfo, usb_conv_info, urb_type);
+ offset += try_dissect_next_protocol(tree, next_tvb, pinfo, usb_conv_info, urb_type);
return offset;
}
@@ -3572,7 +3575,7 @@ dissect_usb_common(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent,
if (tvb_captured_length_remaining(tvb, offset) > 0) {
next_tvb = tvb_new_subset_remaining(tvb, offset);
- offset += try_dissect_next_protocol(tree, parent, next_tvb, pinfo, usb_conv_info, urb_type);
+ offset += try_dissect_next_protocol(tree, next_tvb, pinfo, usb_conv_info, urb_type);
}
if (tvb_captured_length_remaining(tvb, offset) > 0) {