From a203bbbd5b127971310eabd6dcf6c8184d480cbd Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 28 Apr 2014 10:33:13 +0200 Subject: [PATCH] Fix Dead Store (Dead assignement/Dead increment) warning found by Clang Change-Id: I349a5aa7248979aa32eda9f853fd660dc01bdd08 Reviewed-on: https://code.wireshark.org/review/1407 Reviewed-by: Alexis La Goutte --- epan/dissectors/packet-lldp.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c index 992a45cca0..baed41bdb3 100644 --- a/epan/dissectors/packet-lldp.c +++ b/epan/dissectors/packet-lldp.c @@ -1434,9 +1434,6 @@ dissect_dcbx_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint3 proto_tree *apptlv_tree = NULL; proto_item *tf = NULL; - /* Get subtype, CEE or CIN */ - tempByte = tvb_get_guint8(tvb, tempOffset); - if (tree) proto_tree_add_item(tree, hf_dcbx_type, tvb, tempOffset, 1, ENC_BIG_ENDIAN); @@ -1492,7 +1489,7 @@ dissect_dcbx_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint3 proto_tree_add_item(subtlv_tree, hf_dcbx_control_ack, tvb, tempOffset, 4, ENC_BIG_ENDIAN); - tempOffset +=4; + /*tempOffset +=4;*/ } else { /* Common to all feature TLVs */ proto_tree_add_item(subtlv_tree, hf_dcbx_feature_flag_enabled, tvb, tempOffset, 1, ENC_BIG_ENDIAN);