Avoid some dead assignments
authorkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Mar 2010 07:49:13 +0000 (07:49 +0000)
committerkrj <krj@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 16 Mar 2010 07:49:13 +0000 (07:49 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32206 f5534014-38df-0310-8fa8-9805f1628bb7

plugins/interlink/packet-interlink.c

index 692681351f62e212b3e72c35120c89489b8523f3..a6541e6d47345a60613cece262429f9107c65b9e 100644 (file)
@@ -84,7 +84,7 @@ dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        col_clear(pinfo->cinfo, COL_INFO);
 
        if (tree) {
-               proto_item      *il_item = NULL;
+               proto_item      *il_item;
                il_item = proto_tree_add_item(tree, proto_interlink,
                                                                tvb, 0, 16, FALSE);
                if (il_item)
@@ -111,7 +111,7 @@ dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
                tvb, offset, 2, TRUE);
        offset += 2;
        if (ilh_tree) {
-               proto_item      *flags_item = NULL;
+               proto_item      *flags_item;
                proto_tree      *flags_tree = NULL;
 
                flags_item = proto_tree_add_item(ilh_tree, hf_interlink_flags,
@@ -129,7 +129,7 @@ dissect_interlink(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
        offset += 2;
 
        if (tree) {
-               proto_item      *ilb_item = NULL;
+               proto_item      *ilb_item;
                ilb_item = proto_tree_add_text(il_tree, tvb, offset, 4, "Block Header");
                if (ilb_item)
                        ilb_tree = proto_item_add_subtree(ilb_item, ett_interlink_block);