new_offset was was written to but never read.
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 21 Nov 2011 12:11:35 +0000 (12:11 +0000)
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>
Mon, 21 Nov 2011 12:11:35 +0000 (12:11 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39966 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-dec-dnart.c

index b4f1f72b5b37b6af56c028def65063ddae2417d7..abbe1edc897f61415c8d1353099316f95bf831c1 100644 (file)
@@ -401,7 +401,6 @@ dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
     flags_tree = proto_item_add_subtree(ti, ett_dec_routing_flags);
 
     if (msg_flags & RT_FLAGS_CTRL_MSG) {
-        guint   new_offset;
         guint8  ctl_msg_type;
         proto_tree *ctl_msg_tree;
 
@@ -419,29 +418,24 @@ dissect_dec_rt(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
         offset++;
         switch (ctl_msg_type) {
             case RT_CTL_INITIALIZATION:
-                new_offset =
                     do_initialization_msg(
                         tvb, pinfo, ctl_msg_tree, offset);
             break;
             case RT_CTL_VERIFICATION:
-                new_offset =
                     do_verification_msg(
                         tvb, pinfo, ctl_msg_tree, offset);
             break;
             case RT_CTL_HELLO_TEST:
-                new_offset =
                     do_hello_test_msg(
                         tvb, pinfo, ctl_msg_tree, offset);
             break;
             case RT_CTL_LVL1_ROUTING:
             case RT_CTL_LVL2_ROUTING:
-                new_offset =
                     do_routing_msg(
                         tvb, pinfo, ctl_msg_tree, offset, msg_flags >> 1);
             break;
             case RT_CTL_ETH_ROUTER_HELLO_MSG:
             case RT_CTL_ETH_ENDNODE_HELLO_MSG:
-                new_offset =
                     do_hello_msg(
                         tvb, pinfo, ctl_msg_tree, offset, msg_flags >> 1);
             break;