aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-kafka.c
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2013-12-20 15:03:08 +0000
committerEvan Huus <eapache@gmail.com>2013-12-20 15:03:08 +0000
commit1feb5f00c1ea3de5abd864ee506bbb6bcde95522 (patch)
tree2a04d9de87722d3c5d80ace7e07db66d975c67aa /epan/dissectors/packet-kafka.c
parent73f1356275a2001a569a9d88016ce3efacd431fe (diff)
Simplify dissect_kafka_metadata_request() to not add an unnecessary tree and
match the rest of the protocol dissection in style. svn path=/trunk/; revision=54301
Diffstat (limited to 'epan/dissectors/packet-kafka.c')
-rw-r--r--epan/dissectors/packet-kafka.c15
1 files changed, 2 insertions, 13 deletions
diff --git a/epan/dissectors/packet-kafka.c b/epan/dissectors/packet-kafka.c
index 9e8373ae59..fce1fb8564 100644
--- a/epan/dissectors/packet-kafka.c
+++ b/epan/dissectors/packet-kafka.c
@@ -427,20 +427,9 @@ dissect_kafka_metadata_request_topic(tvbuff_t *tvb, packet_info *pinfo, proto_tr
}
static int
-dissect_kafka_metadata_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int start_offset)
+dissect_kafka_metadata_request(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, int offset)
{
- proto_item *ti;
- proto_tree *subtree;
- int offset = start_offset;
-
- ti = proto_tree_add_text(tree, tvb, offset, -1, "Metadata Request");
- subtree = proto_item_add_subtree(ti, ett_kafka_metadata_topics);
-
- offset = dissect_kafka_array(subtree, tvb, pinfo, offset, &dissect_kafka_metadata_request_topic);
-
- proto_item_set_len(ti, offset - start_offset);
-
- return offset;
+ return dissect_kafka_array(tree, tvb, pinfo, offset, &dissect_kafka_metadata_request_topic);
}
/* METADATA RESPONSE */