aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2019-08-30 13:30:16 +0000
committerGerald Combs <gerald@wireshark.org>2019-08-30 21:51:17 +0000
commitd81fe4d8843d3e76fec8466867d39435c03b188a (patch)
tree2bd97bbbe7e0d565474c4d559ab7277ef22bf94c
parent0318a0addba5a35cb979ded8157ebb789062fb3a (diff)
ieee1722: Fix Dead Store
Fix dead store (Dead assignement/Dead increment) Warning found by Clang Change-Id: Ia056c5591369924f88762490b22e72e10f3bc392 Reviewed-on: https://code.wireshark.org/review/34406 Reviewed-by: Jaap Keuter <jaap.keuter@xs4all.nl> Petri-Dish: Jaap Keuter <jaap.keuter@xs4all.nl> Tested-by: Petri Dish Buildbot Reviewed-by: Gerald Combs <gerald@wireshark.org>
-rw-r--r--epan/dissectors/packet-ieee1722.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-ieee1722.c b/epan/dissectors/packet-ieee1722.c
index 26e924d19f..a07cf2d56f 100644
--- a/epan/dissectors/packet-ieee1722.c
+++ b/epan/dissectors/packet-ieee1722.c
@@ -2635,7 +2635,6 @@ static int dissect_1722_acf_can_common(tvbuff_t *tvb, packet_info *pinfo, proto_
if (pad_length > 0 && tvb_reported_length_remaining(tvb, offset) >= (gint)pad_length)
{
proto_tree_add_item(tree_acf_can, hf_1722_can_padding, tvb, offset, pad_length, ENC_NA);
- offset += pad_length;
}
return captured_length;
@@ -2855,7 +2854,6 @@ static int dissect_1722_acf_lin(tvbuff_t *tvb, packet_info *pinfo, proto_tree *t
if (pad_length > 0 && tvb_reported_length_remaining(tvb, offset) >= (gint)pad_length)
{
proto_tree_add_item(tree_lin, hf_1722_lin_padding, tvb, offset, pad_length, ENC_NA);
- offset += pad_length;
}
return captured_length;