Get rid of some useless lines from the last patch
authorlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 18 Feb 2005 20:11:30 +0000 (20:11 +0000)
committerlego <lego@f5534014-38df-0310-8fa8-9805f1628bb7>
Fri, 18 Feb 2005 20:11:30 +0000 (20:11 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@13424 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/mate/packet-mate.c

index 1745f8d487b587723eb6a949276fb1391337719d..471ccb78b9b54746c5b87208c5ae31908647447c 100644 (file)
@@ -105,7 +105,6 @@ void mate_gog_tree(proto_tree* tree, tvbuff_t *tvb, mate_gog* gog, mate_gop* gop
                if (gop != gog_gops) {
                        if (gog->cfg->gop_as_subtree) {
                                mate_gop_tree(gog_gops_tree, tvb, gog_gops);
-                               gog_gop_item = NULL;
                        } else {
                                gog_gop_item = proto_tree_add_uint(gog_gops_tree,gog_gops->cfg->hfid,tvb,0,0,gog_gops->id);
                                
@@ -116,11 +115,7 @@ void mate_gog_tree(proto_tree* tree, tvbuff_t *tvb, mate_gog* gog, mate_gop* gop
                                
                        }
                } else {
-                        gog_gop_item = proto_tree_add_uint_format(gog_gops_tree,gop->cfg->hfid,tvb,0,0,gop->id,"%s of current frame: %d",gop->cfg->name,gop->id);
-               }
-               
-               if (gog_gop_item) {
-
+                        proto_tree_add_uint_format(gog_gops_tree,gop->cfg->hfid,tvb,0,0,gop->id,"%s of current frame: %d",gop->cfg->name,gop->id);
                }
        }
 }