summaryrefslogtreecommitdiff
path: root/asn1/snmp
diff options
context:
space:
mode:
authorStephen Fisher <steve@stephen-fisher.com>2011-04-12 22:12:05 +0000
committerStephen Fisher <steve@stephen-fisher.com>2011-04-12 22:12:05 +0000
commitce2eea5b95fcef8f91d510d2acb7ff2ff0e7721f (patch)
tree2e8b71360cc0120265d49b83b8a4f557d588cdc3 /asn1/snmp
parenta0e2d8ec0a1171d3da53ebc81354f5c1b878b13d (diff)
downloadwireshark-ce2eea5b95fcef8f91d510d2acb7ff2ff0e7721f.tar.gz
Fix Coverity 1047: UNUSED_VALUE in dissect_smux
svn path=/trunk/; revision=36614
Diffstat (limited to 'asn1/snmp')
-rw-r--r--asn1/snmp/packet-snmp-template.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/asn1/snmp/packet-snmp-template.c b/asn1/snmp/packet-snmp-template.c
index bd1a9fd0fb..2162905525 100644
--- a/asn1/snmp/packet-snmp-template.c
+++ b/asn1/snmp/packet-snmp-template.c
@@ -1773,7 +1773,6 @@ dissect_snmp_tcp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
static void
dissect_smux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
{
- proto_tree *smux_tree = NULL;
proto_item *item = NULL;
next_tvb_init(&var_list);
@@ -1782,7 +1781,7 @@ dissect_smux(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tree) {
item = proto_tree_add_item(tree, proto_smux, tvb, 0, -1, FALSE);
- smux_tree = proto_item_add_subtree(item, ett_smux);
+ proto_item_add_subtree(item, ett_smux);
}
dissect_SMUX_PDUs_PDU(tvb, pinfo, tree);