aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dcp-etsi.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-05-13 19:29:15 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-05-13 19:29:15 +0000
commitdac93d45ddaa5f76cfc49a1274134f8927e2be89 (patch)
treed92ad78ceb641c21b6446567dd7103f25d6b3bef /epan/dissectors/packet-dcp-etsi.c
parent0ea2cd66e7fa5f51097819356cfe392872c9f551 (diff)
Delete 2 assignments to 'i' as neither were used. Fixes Coverity CID 875.
svn path=/trunk/; revision=37132
Diffstat (limited to 'epan/dissectors/packet-dcp-etsi.c')
-rw-r--r--epan/dissectors/packet-dcp-etsi.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/epan/dissectors/packet-dcp-etsi.c b/epan/dissectors/packet-dcp-etsi.c
index fd2d683b57..5244d350de 100644
--- a/epan/dissectors/packet-dcp-etsi.c
+++ b/epan/dissectors/packet-dcp-etsi.c
@@ -643,18 +643,17 @@ dissect_tpl(tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
if(bits % 8)
bytes++;
if(tree) {
- proto_item *i = NULL;
if(strcmp(tag, "*ptr")==0) {
prot = (char*)tvb_get_ephemeral_string (tvb, offset, 4);
maj = tvb_get_ntohs(tvb, offset+4);
min = tvb_get_ntohs(tvb, offset+6);
- i = proto_tree_add_bytes_format(tpl_tree, hf_tpl_tlv, tvb,
+ proto_tree_add_bytes_format(tpl_tree, hf_tpl_tlv, tvb,
offset-8, bytes+8, tvb_get_ptr(tvb, offset, bytes),
- "%s %s rev %d.%d", tag, prot, maj, min);
+ "%s %s rev %d.%d", tag, prot, maj, min);
} else {
- i = proto_tree_add_bytes_format(tpl_tree, hf_tpl_tlv, tvb,
+ proto_tree_add_bytes_format(tpl_tree, hf_tpl_tlv, tvb,
offset-8, bytes+8, tvb_get_ptr(tvb, offset, bytes),
- "%s (%u bits)", tag, bits);
+ "%s (%u bits)", tag, bits);
}
}
offset += bytes;