From 082db3982a6430d98b0dc5ac8a78362a54fbce7e Mon Sep 17 00:00:00 2001 From: Bill Meier Date: Sun, 2 Aug 2009 12:58:57 +0000 Subject: [PATCH] Remove unneeded #include ; fix some indentation. svn path=/trunk/; revision=29261 --- epan/dissectors/packet-usb-hid.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/epan/dissectors/packet-usb-hid.c b/epan/dissectors/packet-usb-hid.c index 2308d3f2ce..281d21755b 100644 --- a/epan/dissectors/packet-usb-hid.c +++ b/epan/dissectors/packet-usb-hid.c @@ -27,7 +27,6 @@ #include #include -#include #include #include "packet-usb.h" #include "packet-usb-hid.h" @@ -521,7 +520,7 @@ dissect_usb_hid_report_item(packet_info *pinfo _U_, proto_tree *parent_tree, tvb if (bTag == USBHID_MAINITEM_TAG_COLLECTION) { /* Begin collection, nest following elements under us */ offset = dissect_usb_hid_report_item(pinfo, subtree, tvb, offset, usb_trans_info, usb_conv_info, &cur_global); - proto_item_set_len(subitem, offset-old_offset); + proto_item_set_len(subitem, offset-old_offset); } else if (bTag == USBHID_MAINITEM_TAG_ENDCOLLECTION) { /* End collection, break out to parent tree item */ break; @@ -542,12 +541,12 @@ dissect_usb_hid_get_report_descriptor(packet_info *pinfo _U_, proto_tree *parent memset(&initial_global, 0, sizeof(struct usb_hid_global_state)); if (parent_tree) { - item = proto_tree_add_protocol_format(parent_tree, proto_usb_hid, tvb, offset, - -1, "HID Report"); + item = proto_tree_add_protocol_format(parent_tree, proto_usb_hid, tvb, offset, + -1, "HID Report"); tree = proto_item_add_subtree(item, ett_usb_hid_report); offset = dissect_usb_hid_report_item(pinfo, tree, tvb, offset, usb_trans_info, usb_conv_info, &initial_global); - proto_item_set_len(item, offset-old_offset); + proto_item_set_len(item, offset-old_offset); } return offset;