diff options
author | Martin Kaiser <wireshark@kaiser.cx> | 2014-08-20 14:41:26 +0200 |
---|---|---|
committer | Martin Kaiser <wireshark@kaiser.cx> | 2014-08-25 13:48:12 +0000 |
commit | c284e1211296361d1548e8f98a7ccc51c621019f (patch) | |
tree | 0d9ff00161b74f35f09b7b4dcdee2b6851c36381 /epan/dissectors/packet-mausb.c | |
parent | d87fbc9a609a920eb4d0629260902fa4a30d2cd0 (diff) |
remove trans_info parameter from dissect_usb_unknown_descriptor()
remove now unused trans_info variable in mausb
Change-Id: I99df8a1ed039134c9448546d0f1a738f203f9610
Reviewed-on: https://code.wireshark.org/review/3785
Reviewed-by: Martin Kaiser <wireshark@kaiser.cx>
Tested-by: Martin Kaiser <wireshark@kaiser.cx>
Diffstat (limited to 'epan/dissectors/packet-mausb.c')
-rw-r--r-- | epan/dissectors/packet-mausb.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-mausb.c b/epan/dissectors/packet-mausb.c index e283d7c643..0e057b94c9 100644 --- a/epan/dissectors/packet-mausb.c +++ b/epan/dissectors/packet-mausb.c @@ -832,7 +832,6 @@ static guint8 mausb_get_size_ep_des(tvbuff_t *tvb, gint offset) static guint16 dissect_mausb_mgmt_pkt_ep_handle( proto_tree *tree, tvbuff_t *tvb, packet_info *pinfo, gint16 start, gboolean req, gboolean del) { - usb_trans_info_t usb_trans_info; usb_conv_info_t usb_conv_info; proto_item *size_field = NULL; guint16 offset = start; @@ -841,7 +840,6 @@ static guint16 dissect_mausb_mgmt_pkt_ep_handle( proto_tree *tree, tvbuff_t *tvb guint8 size_ep_des; int i; - memset(&usb_trans_info, 0, sizeof(usb_trans_info_t)); memset(&usb_conv_info, 0, sizeof(usb_conv_info_t)); num_ep = tvb_get_guint8(tvb, offset) & MAUSB_MGMT_NUM_EP_DES_MASK; @@ -901,13 +899,13 @@ static guint16 dissect_mausb_mgmt_pkt_ep_handle( proto_tree *tree, tvbuff_t *tvb if (MAUSB_EP_DES_SIZE < size_ep_des) { /* TODO: Dissector for SS EP Companion Descriptors */ dissect_usb_unknown_descriptor(pinfo, tree, - tvb, loop_offset, &usb_trans_info, &usb_conv_info); + tvb, loop_offset, &usb_conv_info); loop_offset += USB_DT_SS_EP_COMP_SIZE; if (MAUSB_SS_EP_DES_SIZE < size_ep_des) { /* TODO: Dissector for SSP ISO EP Companion Descriptors */ loop_offset += dissect_usb_unknown_descriptor(pinfo, tree, - tvb, loop_offset, &usb_trans_info, &usb_conv_info); + tvb, loop_offset, &usb_conv_info); /* Pad to a DWORD */ proto_tree_add_item(tree, hf_mausb_ep_handle_req_pad, tvb, |