summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-03-19 13:59:56 +0100
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2014-03-19 13:03:29 +0000
commit830ad37ed6139c689468d36d03aa3a3de3f01299 (patch)
treec436b20be764aac1048be444ff14a3a03200a870
parentd35ccc5cdf83f7d77e767fec1f0484880f3af22f (diff)
downloadwireshark-830ad37ed6139c689468d36d03aa3a3de3f01299.tar.gz
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I303184523c22d17c3f642852bcd97a9533bf5521 Reviewed-on: https://code.wireshark.org/review/738 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
-rw-r--r--epan/dissectors/packet-lg8979.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/epan/dissectors/packet-lg8979.c b/epan/dissectors/packet-lg8979.c
index 353e026db3..114a684496 100644
--- a/epan/dissectors/packet-lg8979.c
+++ b/epan/dissectors/packet-lg8979.c
@@ -1065,8 +1065,6 @@ dissect_lg8979(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _
for (cnt=0; cnt<num_points; cnt++) {
- ptval = tvb_get_letohs(tvb, offset);
-
lg8979_point_item = proto_tree_add_item(lg8979_tree, hf_lg8979_acc_point, tvb, offset, 2, ENC_LITTLE_ENDIAN);
proto_item_prepend_text(lg8979_point_item, "Point Number %u, ", ptnum8);
@@ -1560,4 +1558,4 @@ proto_reg_handoff_lg8979(void)
*
* vi: set shiftwidth=4 tabstop=8 expandtab:
* :indentSize=4:tabSize=8:noTabs=true:
- */ \ No newline at end of file
+ */