diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-10-28 17:44:01 +0000 |
---|---|---|
committer | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2011-10-28 17:44:01 +0000 |
commit | 5fb574c69efc6728120d45baf8dc2c33f0c04644 (patch) | |
tree | 4fe2019be6be05e451a707010273d704c84a093b /epan/dissectors/packet-bgp.c | |
parent | 654f213aae979de08be249e66aee9ee88e73f171 (diff) |
Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=39655
Diffstat (limited to 'epan/dissectors/packet-bgp.c')
-rw-r--r-- | epan/dissectors/packet-bgp.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/epan/dissectors/packet-bgp.c b/epan/dissectors/packet-bgp.c index 56905bcc8d..d5a70f07a8 100644 --- a/epan/dissectors/packet-bgp.c +++ b/epan/dissectors/packet-bgp.c @@ -742,12 +742,12 @@ decode_mcast_vpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, guint16 afi) ip_length = (afi == AFNUM_INET) ? 4 : 16; route_type = tvb_get_guint8(tvb, offset); - item = proto_tree_add_item(tree, hf_bgp_mcast_vpn_nlri_route_type, tvb, + proto_tree_add_item(tree, hf_bgp_mcast_vpn_nlri_route_type, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; length = tvb_get_guint8(tvb, offset); - item = proto_tree_add_item(tree, hf_bgp_mcast_vpn_nlri_length, tvb, offset, + proto_tree_add_item(tree, hf_bgp_mcast_vpn_nlri_length, tvb, offset, 1, ENC_BIG_ENDIAN); offset++; @@ -773,11 +773,11 @@ decode_mcast_vpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, guint16 afi) offset += BGP_ROUTE_DISTINGUISHER_SIZE; if (afi == AFNUM_INET) - item = proto_tree_add_item(nlri_tree, + proto_tree_add_item(nlri_tree, hf_bgp_mcast_vpn_nlri_origin_router_ipv4, tvb, offset, ip_length, ENC_BIG_ENDIAN); else - item = proto_tree_add_item(nlri_tree, + proto_tree_add_item(nlri_tree, hf_bgp_mcast_vpn_nlri_origin_router_ipv6, tvb, offset, ip_length, ENC_NA); break; @@ -817,11 +817,11 @@ decode_mcast_vpn_nlri(proto_tree *tree, tvbuff_t *tvb, gint offset, guint16 afi) offset += route_key_length; if (afi == AFNUM_INET) - item = proto_tree_add_item(nlri_tree, + proto_tree_add_item(nlri_tree, hf_bgp_mcast_vpn_nlri_origin_router_ipv4, tvb, offset, ip_length, ENC_BIG_ENDIAN); else - item = proto_tree_add_item(nlri_tree, + proto_tree_add_item(nlri_tree, hf_bgp_mcast_vpn_nlri_origin_router_ipv6, tvb, offset, ip_length, ENC_NA); break; |