mount: fix Copy-paste error (CID 1224605)

Don't longer need to check if(tree)

Change-Id: I4ec572df28bad3c487c3c744840d97b79781feb3
Reviewed-on: https://code.wireshark.org/review/6164
Reviewed-by: Michael Mann <mmann78@netscape.net>
This commit is contained in:
Alexis La Goutte 2014-12-31 12:20:55 +01:00 committed by Michael Mann
parent 7c93e81551
commit aeb10b9156
1 changed files with 3 additions and 5 deletions

View File

@ -299,11 +299,9 @@ dissect_exportlist(tvbuff_t *tvb, int offset, packet_info *pinfo, proto_tree *tr
hf_mount_exportlist_directory, offset, &directory);
groups_offset = offset;
if (tree) {
groups_item = proto_tree_add_item(exportlist_tree, hf_mount_groups, tvb,
offset, -1, ENC_NA);
groups_tree = proto_item_add_subtree(groups_item, ett_mount_groups);
}
groups_item = proto_tree_add_item(exportlist_tree, hf_mount_groups, tvb, offset, -1, ENC_NA);
groups_tree = proto_item_add_subtree(groups_item, ett_mount_groups);
offset = dissect_rpc_list(tvb, pinfo, groups_tree, offset,
dissect_group, NULL);