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>
This commit is contained in:
Alexis La Goutte 2016-07-26 10:59:30 +02:00 committed by Anders Broman
parent 761d555e4f
commit d860d5a74b
1 changed files with 0 additions and 3 deletions

View File

@ -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*/