aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gtpv2.c
diff options
context:
space:
mode:
authorChris Maynard <Christopher.Maynard@GTECH.COM>2011-08-02 19:29:51 +0000
committerChris Maynard <Christopher.Maynard@GTECH.COM>2011-08-02 19:29:51 +0000
commite7928ce63018a4c84446d9aca195412d257c2ffc (patch)
tree4b9da79ce4fb197af483070328a36ef7e96ed4ec /epan/dissectors/packet-gtpv2.c
parentd39696be6d7cf9c9f71b18a8b673995d15aa7748 (diff)
Fix Coverity CID 1248: unused value.
svn path=/trunk/; revision=38314
Diffstat (limited to 'epan/dissectors/packet-gtpv2.c')
-rw-r--r--epan/dissectors/packet-gtpv2.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/epan/dissectors/packet-gtpv2.c b/epan/dissectors/packet-gtpv2.c
index 35b1b3179d..aec37b6c34 100644
--- a/epan/dissectors/packet-gtpv2.c
+++ b/epan/dissectors/packet-gtpv2.c
@@ -939,23 +939,21 @@ dissect_gtpv2_recovery(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree,
static void
dissect_gtpv2_stn_sr(tvbuff_t *tvb, packet_info *pinfo _U_, proto_tree *tree, proto_item *item _U_, guint16 length _U_,guint8 message_type _U_, guint8 instance _U_)
{
- proto_item *stn_sr_item;
- proto_tree *sub_tree;
- tvbuff_t * new_tvb;
- int offset = 0;
+ proto_tree *sub_tree;
+ tvbuff_t *new_tvb;
+ int offset = 0;
- stn_sr_item = proto_tree_add_item(tree, hf_gtpv2_stn_sr, tvb, offset, length, FALSE);
- new_tvb = tvb_new_subset(tvb, offset, length, length );
+ proto_tree_add_item(tree, hf_gtpv2_stn_sr, tvb, offset, length, FALSE);
+ new_tvb = tvb_new_subset(tvb, offset, length, length );
sub_tree = proto_item_add_subtree(item, ett_gtpv2_stn_sr);
- /* Octet 5
+ /* Octet 5
* contains the Nature of Address and Numbering Plan Indicator (NANPI) of the "AddressString" ASN.1 type (see 3GPP
* TS 29.002 [11]). Octets 6 to (n+4) contain the actual STN-SR (digits of an address encoded as a TBCD-STRING as in
* the "AddressString" ASN.1 type). For an odd number of STN-SR digits, bits 8 to 5 of the last octet are encoded with the
* filler "1111".
- */
- dissect_gsm_map_msisdn(new_tvb, pinfo, sub_tree);
-
+ */
+ dissect_gsm_map_msisdn(new_tvb, pinfo, sub_tree);
}
/* 6.3 Source to Target Transparent Container */