diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2015-01-05 11:05:56 +0100 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2015-01-05 10:39:35 +0000 |
commit | 42706734a362372e4c0c2e8885e024fe3d7dc3f2 (patch) | |
tree | 3635271a3628b5941a5127e23af1c73d51cd5e07 /epan/dissectors/packet-ositp.c | |
parent | b03a21a1e6dcd82ddf85959ae4eb3d272b912a33 (diff) |
OSITP: Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: Ied8e931541e8e570ef32376eec61779a32bbd493
Reviewed-on: https://code.wireshark.org/review/6322
Reviewed-by: Anders Broman <a.broman58@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-ositp.c')
-rw-r--r-- | epan/dissectors/packet-ositp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/epan/dissectors/packet-ositp.c b/epan/dissectors/packet-ositp.c index 5404dcba49..4f2fe70ca8 100644 --- a/epan/dissectors/packet-ositp.c +++ b/epan/dissectors/packet-ositp.c @@ -513,7 +513,6 @@ static gboolean ositp_decode_var_part(tvbuff_t *tvb, int offset, int vp_length, break; case VP_ACK_TIME: - s = tvb_get_ntohs(tvb, offset); proto_tree_add_item(tree, hf_cotp_ack_time, tvb, offset, length, ENC_BIG_ENDIAN); offset += length; vp_length -= length; @@ -539,7 +538,6 @@ static gboolean ositp_decode_var_part(tvbuff_t *tvb, int offset, int vp_length, break; case VP_PRIORITY: - s = tvb_get_ntohs(tvb, offset); proto_tree_add_item(tree, hf_cotp_vp_priority, tvb, offset, 2, ENC_BIG_ENDIAN); offset += length; vp_length -= length; @@ -726,14 +724,12 @@ static gboolean ositp_decode_var_part(tvbuff_t *tvb, int offset, int vp_length, break; case VP_VERSION_NR: - c1 = tvb_get_guint8(tvb, offset); proto_tree_add_item(tree, hf_cotp_vp_version_nr, tvb, offset, 1, ENC_NA); offset += length; vp_length -= length; break; case VP_OPT_SEL: - c1 = tvb_get_guint8(tvb, offset) & 0x0F; switch (class_option) { case 1: |