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>
This commit is contained in:
Alexis La Goutte 2017-10-16 20:51:46 +02:00 committed by Michael Mann
parent 4acce81d12
commit 9cfb746e65
1 changed files with 3 additions and 3 deletions

View File

@ -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;