aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2016-07-26 10:59:30 +0200
committerAnders Broman <a.broman58@gmail.com>2016-07-26 11:31:02 +0000
commitd860d5a74b91b6d8e67c7735b181d70c25cf4df0 (patch)
treeab489c09d0026d6a56c11eb59da494c2312e90a2
parent761d555e4f20eaba64f7c064bee693a33a74fdcf (diff)
BGP: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: Iaec85cbe8fbced461a56f55f8813506054356369 Reviewed-on: https://code.wireshark.org/review/16688 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-bgp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c
index fa6dea5865..e7671c6208 100644
--- a/epan/dissectors/packet-bgp.c
+++ b/epan/dissectors/packet-bgp.c
@@ -4376,7 +4376,6 @@ static int decode_evpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, packet
proto_tree_add_item(prefix_tree, hf_bgp_evpn_nlri_iplen, tvb, reader_offset,
1, ENC_BIG_ENDIAN);
reader_offset++;
- total_length = reader_offset;
if (ip_len == 4) {
/*IPv4 address*/
@@ -4433,7 +4432,6 @@ static int decode_evpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, packet
proto_tree_add_item(prefix_tree, hf_bgp_evpn_nlri_iplen, tvb, reader_offset,
1, ENC_BIG_ENDIAN);
reader_offset += 1;
- total_length = reader_offset;
if (ip_len == 4) {
/*IPv4 address*/
@@ -4478,7 +4476,6 @@ static int decode_evpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, packet
proto_tree_add_item(prefix_tree, hf_bgp_evpn_nlri_iplen, tvb, reader_offset,
1, ENC_BIG_ENDIAN);
reader_offset++;
- total_length = reader_offset;
if (ip_len == 4) {
/*IPv4 address*/