Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
authorAlexis La Goutte <alexis.lagoutte@gmail.com>
Fri, 13 Jan 2012 16:19:24 +0000 (16:19 -0000)
committerAlexis La Goutte <alexis.lagoutte@gmail.com>
Fri, 13 Jan 2012 16:19:24 +0000 (16:19 -0000)
svn path=/trunk/; revision=40459

asn1/inap/packet-inap-template.c
epan/dissectors/packet-inap.c

index f786949a6f030610b006cc2e1c345f76ae2c5786..6bc98ed92d404a323ff7e35a3a03134909639914 100644 (file)
@@ -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);
 
 
 }
index 153a022ca209f2666e19298391f3f4d096632b8e..e449b4425a6677032253e8cf2053e62b12c72fb1 100644 (file)
@@ -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);
 
 
 }