aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-fcp.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2014-06-09 12:38:09 +0200
committerEvan Huus <eapache@gmail.com>2014-06-09 23:56:40 +0000
commit8c4a13915e42e2ba4767a8ab3cf67e15740a1453 (patch)
tree5a3dabdaff888a26d5cb066b445af5b42104f98d /epan/dissectors/packet-fcp.c
parenta08cbe70716fe8494ec34b5bd20a47a822f4f3f1 (diff)
Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I08f4860a97d8406fef878887887b6537bf7600ee Reviewed-on: https://code.wireshark.org/review/2063 Reviewed-by: Evan Huus <eapache@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-fcp.c')
-rw-r--r--epan/dissectors/packet-fcp.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/epan/dissectors/packet-fcp.c b/epan/dissectors/packet-fcp.c
index fdcd9de7cf..4c7df233cb 100644
--- a/epan/dissectors/packet-fcp.c
+++ b/epan/dissectors/packet-fcp.c
@@ -389,7 +389,7 @@ dissect_fcp_cmnd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, pro
guint8 flags, rwflags, lun0;
guint16 lun = 0xffff;
tvbuff_t *cdb_tvb;
- int tvb_len, tvb_rlen;
+ int tvb_len;
fcp_request_data_t *request_data = NULL;
itl_nexus_t itl;
fcp_proto_data_t *proto_data;
@@ -483,9 +483,6 @@ dissect_fcp_cmnd(tvbuff_t *tvb, packet_info *pinfo, proto_tree *parent_tree, pro
tvb_len = tvb_length_remaining(tvb, offset+12);
if (tvb_len > (16 + add_len))
tvb_len = 16 + add_len;
- tvb_rlen = tvb_reported_length_remaining(tvb, offset+12);
- if (tvb_rlen > (16 + add_len))
- tvb_rlen = 16 + add_len;
itl.cmdset = 0xff;
itl.conversation = conversation;