aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lldp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-11-17 17:10:36 +0100
committerMichael Mann <mmann78@netscape.net>2014-11-17 18:53:42 +0000
commit82bb3630de73d543cb17a79f7b7c64e38ba67b35 (patch)
treeba4a1d7629fc3198d81173649f0cfa4a94684c87 /epan/dissectors/packet-lldp.c
parent3ce0167467a665f6d62e2e470951f71456029618 (diff)
LLDP: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I8c750ed9ad775b9be9d12050d200d7f1b4ddb86e Reviewed-on: https://code.wireshark.org/review/5365 Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-lldp.c')
-rw-r--r--epan/dissectors/packet-lldp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-lldp.c b/epan/dissectors/packet-lldp.c
index 0b81485732..73db60dace 100644
--- a/epan/dissectors/packet-lldp.c
+++ b/epan/dissectors/packet-lldp.c
@@ -3263,7 +3263,7 @@ dissect_hytec_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint
proto_tree_add_item(hytec_data, hf_hytec_request_mac_address, tvb, offset, 6, ENC_NA);
offset += 6;
proto_tree_add_item(hytec_data, hf_hytec_maximum_depth, tvb, offset, 1, ENC_NA);
- offset += 1;
+ /*offset += 1;*/
}
else
{ /* unexpected length */
@@ -3282,7 +3282,7 @@ dissect_hytec_tlv(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, guint
proto_tree_add_item(hytec_data, hf_hytec_answering_mac_address, tvb, offset, 6, ENC_NA);
offset += 6;
proto_tree_add_item(hytec_data, hf_hytec_actual_depth, tvb, offset, 1, ENC_NA);
- offset += 1;
+ /*offset += 1;*/
}
else
{ /* unexpected length */