diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-04-28 10:33:13 +0200 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-04-28 08:34:12 +0000 |
commit | a203bbbd5b127971310eabd6dcf6c8184d480cbd (patch) | |
tree | e23c24da7702ef9e9e35bee2e2724fe003301048 /epan/dissectors | |
parent | 581cdcee1030e619e847304f08f35eb7a0436cb2 (diff) |
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 <alexis.lagoutte@gmail.com>
Diffstat (limited to 'epan/dissectors')
-rw-r--r-- | epan/dissectors/packet-lldp.c | 5 |
1 files changed, 1 insertions, 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); |