aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2017-10-16 20:51:46 +0200
committerMichael Mann <mmann78@netscape.net>2017-10-16 20:55:08 +0000
commit9cfb746e65c42fafb1a94009fcf5d8e2bdf7c00d (patch)
treee2e1cd1cd46ad9ef7f9757991c5b32b5607f2654
parent4acce81d127d56bdf62c2c7e6f321c2a458643e1 (diff)
nfapi: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Value stored to 'offset' is never read Change-Id: Ia7f651edec36a75c60816a3803e53dc86d749262 Reviewed-on: https://code.wireshark.org/review/23942 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
-rw-r--r--epan/dissectors/packet-nfapi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/packet-nfapi.c b/epan/dissectors/packet-nfapi.c
index 9d122a03ff..3db3bfa77a 100644
--- a/epan/dissectors/packet-nfapi.c
+++ b/epan/dissectors/packet-nfapi.c
@@ -8323,7 +8323,7 @@ static int dissect_p7_dl_node_sync_msg_id(tvbuff_t *tvb, packet_info *pinfo, pro
proto_tree_add_item(tree, hf_nfapi_ul_node_sync_t3, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
- return tvb_captured_length(tvb);
+ return offset;
}
static int dissect_p7_ul_node_sync_msg_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
@@ -8335,7 +8335,7 @@ static int dissect_p7_ul_node_sync_msg_id(tvbuff_t *tvb, packet_info *pinfo, pro
proto_tree_add_item(tree, hf_nfapi_dl_node_sync_delta_sfn_sf, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
- return tvb_captured_length(tvb);
+ return offset;
}
static int dissect_p7_timing_info_msg_id(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_)
@@ -8370,7 +8370,7 @@ static int dissect_p7_timing_info_msg_id(tvbuff_t *tvb, packet_info *pinfo, prot
proto_tree_add_item(tree, hf_nfapi_timing_info_hi_dci0_earliest_arrival, tvb, offset, 4, ENC_BIG_ENDIAN);
offset += 4;
- return tvb_captured_length(tvb);
+ return offset;
}
static reassembly_table ul_p7_reassemble_table;