From f31513c274cfcab0f82f22cf14d0037e03cc765d Mon Sep 17 00:00:00 2001 From: Alexis La Goutte Date: Sun, 6 Jan 2019 14:34:13 +0000 Subject: [PATCH] H2Operations: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang Change-Id: I9913b9653fedeb9cc119f10632f4c96fe54027b4 Reviewed-on: https://code.wireshark.org/review/31408 Reviewed-by: Anders Broman Reviewed-by: Michael Mann --- epan/dissectors/asn1/HI2Operations/HI2Operations.cnf | 2 +- epan/dissectors/packet-HI2Operations.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/epan/dissectors/asn1/HI2Operations/HI2Operations.cnf b/epan/dissectors/asn1/HI2Operations/HI2Operations.cnf index 246b7d28f3..91e8847da4 100644 --- a/epan/dissectors/asn1/HI2Operations/HI2Operations.cnf +++ b/epan/dissectors/asn1/HI2Operations/HI2Operations.cnf @@ -63,7 +63,7 @@ StatusType * lawfullInterceptionIdentifier [1] LawfulInterceptionIdentifier, * communicationIdentifier [2] CommunicationIdentifier, */ - tmp_offset = get_ber_identifier(tvb, tmp_offset, &tmp_class, &tmp_pc, &tmp_tag); + get_ber_identifier(tvb, tmp_offset, &tmp_class, &tmp_pc, &tmp_tag); if(tmp_class != BER_CLASS_CON){ return 0; } diff --git a/epan/dissectors/packet-HI2Operations.c b/epan/dissectors/packet-HI2Operations.c index cad83fd99a..2bb97bcd8d 100644 --- a/epan/dissectors/packet-HI2Operations.c +++ b/epan/dissectors/packet-HI2Operations.c @@ -3890,7 +3890,7 @@ dissect_HI2Operations_UUS1_Content(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, * lawfullInterceptionIdentifier [1] LawfulInterceptionIdentifier, * communicationIdentifier [2] CommunicationIdentifier, */ - tmp_offset = get_ber_identifier(tvb, tmp_offset, &tmp_class, &tmp_pc, &tmp_tag); + get_ber_identifier(tvb, tmp_offset, &tmp_class, &tmp_pc, &tmp_tag); if(tmp_class != BER_CLASS_CON){ return 0; }