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>
This commit is contained in:
Alexis La Goutte 2015-01-05 11:05:56 +01:00 committed by Anders Broman
parent b03a21a1e6
commit 42706734a3
1 changed files with 0 additions and 4 deletions

View File

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