aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-3g-a11.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-04-09 21:02:03 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-04-09 21:02:03 +0000
commit31435deea72093ea9adebdad6cecbeca31cc1d29 (patch)
tree4dd290f003053d873b4d6b95b4055a21dbf1e020 /epan/dissectors/packet-3g-a11.c
parentba9bacfd81f1bd31d9d578a50cbcc79b2d40da92 (diff)
Coverity CID 281193: Dead code
svn path=/trunk/; revision=48801
Diffstat (limited to 'epan/dissectors/packet-3g-a11.c')
-rw-r--r--epan/dissectors/packet-3g-a11.c15
1 files changed, 3 insertions, 12 deletions
diff --git a/epan/dissectors/packet-3g-a11.c b/epan/dissectors/packet-3g-a11.c
index 4518c6ce4c..54b77e0b63 100644
--- a/epan/dissectors/packet-3g-a11.c
+++ b/epan/dissectors/packet-3g-a11.c
@@ -824,19 +824,10 @@ dissect_ase(tvbuff_t *tvb, int offset, guint ase_len, proto_tree *ext_tree)
entry_start_offset = offset;
entry_lenght = tvb_get_guint8(tvb, offset);
- if (registration_request_msg && (service_option==64 || service_option==67)){
- if (service_option == 67){
- ti = proto_tree_add_text(ext_tree, tvb, offset, entry_lenght+1, "GRE Key Entry (SRID: %d)", srid);
- } else if (service_option== 64){
- ti = proto_tree_add_text(ext_tree, tvb, offset, entry_lenght+1, "GRE Key Entry (SRID: %d)", srid);
- } else {
- proto_tree_add_text(ext_tree, tvb, offset, entry_lenght+1, "Unknown service option %u (SRID: %d)", service_option, srid);
- clen+=entry_lenght+1;
- continue;
- }
- }else{
+ if (registration_request_msg && (service_option==64 || service_option==67))
+ ti = proto_tree_add_text(ext_tree, tvb, offset, entry_lenght+1, "GRE Key Entry (SRID: %d)", srid);
+ else
ti = proto_tree_add_text(ext_tree, tvb, offset, entry_lenght, "GRE Key Entry (SRID: %d)", srid);
- }
exts_tree = proto_item_add_subtree(ti, ett_a11_ase);