aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-snmp.c
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 /epan/dissectors/packet-snmp.c
parenta0e2d8ec0a1171d3da53ebc81354f5c1b878b13d (diff)
Fix Coverity 1047: UNUSED_VALUE in dissect_smux
svn path=/trunk/; revision=36614
Diffstat (limited to 'epan/dissectors/packet-snmp.c')
-rw-r--r--epan/dissectors/packet-snmp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/epan/dissectors/packet-snmp.c b/epan/dissectors/packet-snmp.c
index 91e2d79247..5ba70d2d54 100644
--- a/epan/dissectors/packet-snmp.c
+++ b/epan/dissectors/packet-snmp.c
@@ -2997,7 +2997,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);
@@ -3006,7 +3005,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);
@@ -3633,7 +3632,7 @@ void proto_register_snmp(void) {
NULL, HFILL }},
/*--- End of included file: packet-snmp-hfarr.c ---*/
-#line 2148 "../../asn1/snmp/packet-snmp-template.c"
+#line 2147 "../../asn1/snmp/packet-snmp-template.c"
};
/* List of subtrees */
@@ -3673,7 +3672,7 @@ void proto_register_snmp(void) {
&ett_snmp_RReqPDU_U,
/*--- End of included file: packet-snmp-ettarr.c ---*/
-#line 2164 "../../asn1/snmp/packet-snmp-template.c"
+#line 2163 "../../asn1/snmp/packet-snmp-template.c"
};
module_t *snmp_module;