aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-rlc.c
diff options
context:
space:
mode:
authorMartin Mathieson <martin.r.mathieson@googlemail.com>2011-03-23 10:58:24 +0000
committerMartin Mathieson <martin.r.mathieson@googlemail.com>2011-03-23 10:58:24 +0000
commitb47c36a4bd914dee67f72d56a7a53e15fa296ea8 (patch)
tree90ba9c64131b57e2b3f82f019b1a7ba25205662a /epan/dissectors/packet-rlc.c
parent473b578880dad936823b30223d11c5d4bb920f0f (diff)
Don't assign proto_item pointers that are not used.
Coverity CIDs 1021 & 1022. svn path=/trunk/; revision=36286
Diffstat (limited to 'epan/dissectors/packet-rlc.c')
-rw-r--r--epan/dissectors/packet-rlc.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/epan/dissectors/packet-rlc.c b/epan/dissectors/packet-rlc.c
index cf29b6fbd1..d5ca496148 100644
--- a/epan/dissectors/packet-rlc.c
+++ b/epan/dissectors/packet-rlc.c
@@ -826,8 +826,7 @@ static void rlc_um_reassemble(tvbuff_t *tvb, guint8 offs, packet_info *pinfo, pr
/* is there data left? */
if (tvb_length_remaining(tvb, offs) > 0) {
if (tree) {
- proto_item *ti;
- ti = proto_tree_add_item(tree, hf_rlc_data, tvb, offs, -1, FALSE);
+ proto_tree_add_item(tree, hf_rlc_data, tvb, offs, -1, FALSE);
}
/* add remaining data as fragment */
add_fragment(RLC_UM, tvb, pinfo, tree, offs, seq, i, tvb_length_remaining(tvb, offs), FALSE);
@@ -1135,8 +1134,7 @@ static void rlc_am_reassemble(tvbuff_t *tvb, guint8 offs, packet_info *pinfo, pr
if (tvb_length_remaining(tvb, offs) > 0) {
/* we have remaining data, which we need to mark in the tree */
if (tree) {
- proto_item *ti;
- ti = proto_tree_add_item(tree, hf_rlc_data, tvb, offs, -1, FALSE);
+ proto_tree_add_item(tree, hf_rlc_data, tvb, offs, -1, FALSE);
}
add_fragment(RLC_AM, tvb, pinfo, tree, offs, seq, i,
tvb_length_remaining(tvb,offs), final);