aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-01-13 16:19:24 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-01-13 16:19:24 +0000
commit346bdd6c8778344902aa8d915208aafa803e60d4 (patch)
tree7978a8f569e89f46dbb48ac04ad3c9c009bfda61
parent16dbe7bf4dead9f0966b5961c9945562f855cdab (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40459
-rw-r--r--asn1/inap/packet-inap-template.c2
-rw-r--r--epan/dissectors/packet-inap.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/asn1/inap/packet-inap-template.c b/asn1/inap/packet-inap-template.c
index f786949a6f..6bc98ed92d 100644
--- a/asn1/inap/packet-inap-template.c
+++ b/asn1/inap/packet-inap-template.c
@@ -142,7 +142,7 @@ dissect_inap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
/* Get the length and add 2 */
inap_pdu_size = tvb_get_guint8(tvb, offset+1)+2;
opcode = 0;
- offset = dissect_inap_ROS(TRUE, tvb, offset, &asn1_ctx, tree, -1);
+ dissect_inap_ROS(TRUE, tvb, offset, &asn1_ctx, tree, -1);
}
diff --git a/epan/dissectors/packet-inap.c b/epan/dissectors/packet-inap.c
index 153a022ca2..e449b4425a 100644
--- a/epan/dissectors/packet-inap.c
+++ b/epan/dissectors/packet-inap.c
@@ -9367,7 +9367,7 @@ dissect_inap(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree)
/* Get the length and add 2 */
inap_pdu_size = tvb_get_guint8(tvb, offset+1)+2;
opcode = 0;
- offset = dissect_inap_ROS(TRUE, tvb, offset, &asn1_ctx, tree, -1);
+ dissect_inap_ROS(TRUE, tvb, offset, &asn1_ctx, tree, -1);
}