From 82bb3630de73d543cb17a79f7b7c64e38ba67b35 Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Mon, 17 Nov 2014 17:10:36 +0100 Subject: 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 --- epan/dissectors/packet-lldp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'epan/dissectors/packet-lldp.c') 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 */ -- cgit v1.2.3