forked from osmocom/wireshark
cfdp: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang Change-Id: I434fdecd028d63d12f3fc804342c9ca04c7fd106 Reviewed-on: https://code.wireshark.org/review/34907 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Roland Knall <rknall@gmail.com>
This commit is contained in:
parent
e4692c5226
commit
1dd367b648
|
@ -900,7 +900,6 @@ static guint32 dissect_cfdp_msg_to_user_tlv(tvbuff_t *tvb, packet_info *pinfo, p
|
|||
break;
|
||||
|
||||
case REMOTE_STAT_REP_REQ:
|
||||
aux_byte = tvb_get_guint8(tvb, offset);
|
||||
proto_tree_add_bitmask_ret_uint64(cfdp_msg_to_user_tree, tvb, offset,
|
||||
hf_cfdp_remote_stat_rep_req,
|
||||
ett_cfdp_remote_stat_rep_req,
|
||||
|
@ -1534,7 +1533,6 @@ dissect_cfdp_as_subtree(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, in
|
|||
if ( cfdp_data_end>(guint)offset ) {
|
||||
proto_tree_add_string(cfdp_header_tree, hf_cfdp_file_data_pdu, tvb, offset, cfdp_data_len,
|
||||
wmem_strdup_printf(wmem_packet_scope(), "<%d bytes>", cfdp_data_len));
|
||||
offset = cfdp_data_end;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue