From c21455ce0e62a7b0b45c472baf35bdc907c4fc28 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Wed, 4 Jan 2012 17:35:41 +0000 Subject: Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang svn path=/trunk/; revision=40373 --- epan/dissectors/packet-cipmotion.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'epan/dissectors/packet-cipmotion.c') diff --git a/epan/dissectors/packet-cipmotion.c b/epan/dissectors/packet-cipmotion.c index cfeaefea52..0f75b81780 100644 --- a/epan/dissectors/packet-cipmotion.c +++ b/epan/dissectors/packet-cipmotion.c @@ -1604,9 +1604,6 @@ dissect_var_cont_conn_header(tvbuff_t* tvb, proto_tree* tree, guint32* inst_coun proto_tree_add_item(header_tree, hf_cip_revision, tvb, offset + 1, 1, ENC_LITTLE_ENDIAN); proto_tree_add_item(header_tree, hf_cip_updateid, tvb, offset + 2, 1, ENC_LITTLE_ENDIAN); - /* Read the node control header field from the packet into memory */ - temp_data = tvb_get_guint8(tvb, offset + 3); - /* Create the tree for the node control header field */ temp_proto_item = proto_tree_add_item(header_tree, hf_cip_node_control, tvb, offset + 3, 1, ENC_LITTLE_ENDIAN); temp_proto_tree = proto_item_add_subtree(temp_proto_item, ett_node_control); @@ -1716,7 +1713,7 @@ dissect_var_devce_conn_header(tvbuff_t* tvb, proto_tree* tree, guint32* inst_cou *inst_count = tvb_get_guint8(tvb, offset + 4); /* Add the instance count to the connection header tree */ - temp_proto_item = proto_tree_add_item(header_tree, hf_cip_instance_cnt, tvb, offset + 4, 1, ENC_LITTLE_ENDIAN); + proto_tree_add_item(header_tree, hf_cip_instance_cnt, tvb, offset + 4, 1, ENC_LITTLE_ENDIAN); /* The device to controller header contains the node alarms and node faults fields as well. */ proto_tree_add_item(header_tree, hf_cip_node_fltalarms, tvb, offset + 5, 1, ENC_LITTLE_ENDIAN); -- cgit v1.2.3