aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-03 16:44:26 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-07-03 16:44:26 +0000
commit97ba22acff4b76c212e3e9b381026bcc912cfea5 (patch)
treec03bc98ceb3f856a0f840064e47226d9e5d0e373 /epan/dissectors/packet-fcp.c
parentbfd7c948516677d7858d597ae745beca465a3a9d (diff)
Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=50357
Diffstat (limited to 'epan/dissectors/packet-fcp.c')
-rw-r--r--epan/dissectors/packet-fcp.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/epan/dissectors/packet-fcp.c b/epan/dissectors/packet-fcp.c
index 9808b7ed48..12175f59f4 100644
--- a/epan/dissectors/packet-fcp.c
+++ b/epan/dissectors/packet-fcp.c
@@ -496,7 +496,7 @@ dissect_fcp_data(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, con
}
/* fcp-3 9.5 table 24 */
-static void
+static int
dissect_fcp_rspinfo(tvbuff_t *tvb, proto_tree *tree, int offset)
{
/* 3 reserved bytes */
@@ -508,6 +508,8 @@ dissect_fcp_rspinfo(tvbuff_t *tvb, proto_tree *tree, int offset)
/* 4 reserved bytes */
offset += 4;
+
+ return offset;
}
static void
@@ -598,7 +600,7 @@ dissect_fcp_rsp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, prot
if (flags & 0x60) {
proto_tree_add_item(tree, hf_fcp_bidir_resid, tvb, offset, 4, ENC_BIG_ENDIAN);
}
- offset += 4;
+ /*offset += 4;*/
}
}