aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2018-07-05 11:54:57 +0000
committerAnders Broman <a.broman58@gmail.com>2018-07-22 05:00:17 +0000
commitb93ece3780752163ce6b90f9036c9faa91a61b99 (patch)
treecd732143e402b3ca5ffb380c662eccc51c85cbd0
parent9e20822ae27230cddbbcddb563fb04dc852d5f09 (diff)
cisco-fp-min: Fix Dead Store (Dead assignement/Dead increment) Warning found by Clang
Change-Id: If470ed91123b6a0a630d6e0a17bffd296759031a Reviewed-on: https://code.wireshark.org/review/28604 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
-rw-r--r--epan/dissectors/packet-cisco-fp-mim.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-cisco-fp-mim.c b/epan/dissectors/packet-cisco-fp-mim.c
index ccc2d5ec84..ca9d561e06 100644
--- a/epan/dissectors/packet-cisco-fp-mim.c
+++ b/epan/dissectors/packet-cisco-fp-mim.c
@@ -297,14 +297,12 @@ dissect_fp( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void *data _U_
offset += 2;
break;
default:
- offset += 2;
/* The heuristics should prevent us from getting here */
DISSECTOR_ASSERT(0);
}
proto_tree_add_item (fp_tree, hf_ftag, tvb, offset, FP_FTAG_LEN, ENC_BIG_ENDIAN);
proto_tree_add_item (fp_tree, hf_ttl, tvb, offset, FP_FTAG_LEN, ENC_BIG_ENDIAN);
- offset += 2;
}
/* call the eth dissector */