summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-16 16:35:55 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-03-16 16:35:55 +0000
commit68852899b0fd0b85c74a4c4e8e9745c6ba5afb7e (patch)
tree7398aa252d36acaa62e91d684b8a7dcf073855d4
parentd18d7413f90cdbc68f58eb66e9b1ef8894e201ad (diff)
downloadwireshark-68852899b0fd0b85c74a4c4e8e9745c6ba5afb7e.tar.gz
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=41617
-rw-r--r--epan/dissectors/packet-eiss.c19
1 files changed, 8 insertions, 11 deletions
diff --git a/epan/dissectors/packet-eiss.c b/epan/dissectors/packet-eiss.c
index 091766673e..0c570a8eb4 100644
--- a/epan/dissectors/packet-eiss.c
+++ b/epan/dissectors/packet-eiss.c
@@ -164,7 +164,6 @@ dissect_eiss_descriptors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
if (0xe0 == tag) {
guint8 total_length;
- guint16 irl_length;
total_length = tvb_get_guint8(tvb, offset+1);
pi = proto_tree_add_text(tree, tvb, offset, (2+total_length),
@@ -173,8 +172,8 @@ dissect_eiss_descriptors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_tree_add_item(sub_tree, hf_eiss_descriptor_tag,
tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
- pi = proto_tree_add_item(sub_tree, hf_eiss_descriptor_length,
- tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(sub_tree, hf_eiss_descriptor_length, tvb,
+ offset, 1, ENC_BIG_ENDIAN);
offset++;
proto_tree_add_item(sub_tree, hf_eiss_aid_app_control_code, tvb,
offset, 1, ENC_BIG_ENDIAN);
@@ -202,8 +201,6 @@ dissect_eiss_descriptors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
offset++;
proto_tree_add_item(sub_tree, hf_eiss_irl_type, tvb, offset, 2,
ENC_BIG_ENDIAN);
- irl_length = tvb_get_ntohs(tvb, offset);
- irl_length &= 0x3ff;
proto_tree_add_item(sub_tree, hf_eiss_irl_length, tvb, offset,
2, ENC_BIG_ENDIAN);
offset += 2;
@@ -217,8 +214,8 @@ dissect_eiss_descriptors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_tree_add_item(sub_tree, hf_eiss_descriptor_tag,
tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
- pi = proto_tree_add_item(sub_tree, hf_eiss_descriptor_length,
- tvb, offset, 1, ENC_BIG_ENDIAN);
+ proto_tree_add_item(sub_tree, hf_eiss_descriptor_length, tvb,
+ offset, 1, ENC_BIG_ENDIAN);
offset++;
proto_tree_add_item(sub_tree, hf_eiss_mtd_time_value, tvb,
offset, 4, ENC_BIG_ENDIAN);
@@ -234,10 +231,10 @@ dissect_eiss_descriptors(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree,
proto_tree_add_item(sub_tree, hf_eiss_descriptor_tag,
tvb, offset, 1, ENC_BIG_ENDIAN);
offset++;
- pi = proto_tree_add_item(sub_tree, hf_eiss_sed_reserved,
- tvb, offset, 2, ENC_BIG_ENDIAN);
- pi = proto_tree_add_item(sub_tree, hf_eiss_sed_descriptor_length,
- tvb, offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(sub_tree, hf_eiss_sed_reserved, tvb,
+ offset, 2, ENC_BIG_ENDIAN);
+ proto_tree_add_item(sub_tree, hf_eiss_sed_descriptor_length, tvb,
+ offset, 2, ENC_BIG_ENDIAN);
offset += 2;
proto_tree_add_item(sub_tree, hf_eiss_sed_time_value, tvb,
offset, 4, ENC_BIG_ENDIAN);