Fix Coverity 1047: UNUSED_VALUE in dissect_smux
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Apr 2011 22:12:05 +0000 (22:12 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 12 Apr 2011 22:12:05 +0000 (22:12 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36614 f5534014-38df-0310-8fa8-9805f1628bb7

asn1/snmp/packet-snmp-template.c
epan/dissectors/packet-snmp.c

index bd1a9fd0fb35b197babba7d795f5aed7471b13de..2162905525d1b015e3136e96a4fc816d931af985 100644 (file)
@@ -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);
index 91e2d7924727b350760916c700c1c9f03201ae42..5ba70d2d54a1c1cb1007ca3061f4d498ace71725 100644 (file)
@@ -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;