ber: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang

Change-Id: I9cab3c6e6308b8603dede34ccf907dd326c23957
Reviewed-on: https://code.wireshark.org/review/28211
Petri-Dish: Dario Lombardo <lomato@gmail.com>
Tested-by: Petri Dish Buildbot
Reviewed-by: Dario Lombardo <lomato@gmail.com>
This commit is contained in:
Alexis La Goutte 2018-06-12 08:11:26 +02:00 committed by Dario Lombardo
parent 1568ea952b
commit 9b03b6fc8e
1 changed files with 3 additions and 3 deletions

View File

@ -2248,7 +2248,7 @@ ber_sequence_try_again:
if (!seq->func) {
/* it was not, move to the next one and try again */
offset = dissect_ber_identifier(actx->pinfo, tree, tvb, hoffset, NULL, NULL, NULL);
offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
cause = proto_tree_add_expert_format(
tree, actx->pinfo, &ei_ber_unknown_field_sequence,
tvb, hoffset, -1,
@ -2286,7 +2286,7 @@ ber_sequence_try_again:
identifier_offset = hoffset;
offset = dissect_ber_identifier(actx->pinfo, tree, tvb, hoffset, NULL, NULL, NULL);
identifier_len = offset - identifier_offset;
offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
if (seq->ber_class == BER_CLASS_UNI) {
cause = proto_tree_add_expert_format(
tree, actx->pinfo, &ei_ber_sequence_field_wrong,
@ -2334,7 +2334,7 @@ ber_sequence_try_again:
identifier_offset = hoffset;
offset = dissect_ber_identifier(actx->pinfo, tree, tvb, hoffset, NULL, NULL, NULL);
identifier_len = offset - identifier_offset;
offset = dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
dissect_ber_length(actx->pinfo, tree, tvb, offset, NULL, NULL);
if ( seq->ber_class == BER_CLASS_UNI) {
cause = proto_tree_add_expert_format(
tree, actx->pinfo, &ei_ber_sequence_field_wrong,