diff options
author | Jaap Keuter <jaap.keuter@xs4all.nl> | 2016-03-23 19:18:48 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2016-03-24 00:04:55 +0000 |
commit | 01faf397940c3f3e59078d648440a06140abaa4f (patch) | |
tree | 32690a010ace5ec5dbe9a9b90f1cf309f09f9ac3 /epan/dissectors/packet-gsm_a_rr.c | |
parent | df8b5cbdc0d012c750a5ae08885a57e0de13ebc5 (diff) |
Remove constant variable (CID-280372)
This copied and stripped code has this variable which does
not change. Remove this constant variable and the conditional
statements related.
Change-Id: I0741ef0ef8b8d1cbd52fc521bc6a91ad06c8b597
Reviewed-on: https://code.wireshark.org/review/14594
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Petri-Dish: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'epan/dissectors/packet-gsm_a_rr.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_rr.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/epan/dissectors/packet-gsm_a_rr.c b/epan/dissectors/packet-gsm_a_rr.c index d345c93fcb..1b2f9d9743 100644 --- a/epan/dissectors/packet-gsm_a_rr.c +++ b/epan/dissectors/packet-gsm_a_rr.c @@ -10835,7 +10835,6 @@ dissect_ccch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ const gchar *msg_str; gint ett_tree; int hf_idx; - gboolean nsd; len = tvb_reported_length(tvb); @@ -10884,7 +10883,6 @@ dissect_ccch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ ett_tree = -1; hf_idx = -1; msg_fcn_p = NULL; - nsd = FALSE; col_append_fstr(pinfo->cinfo, COL_INFO, "(%s) ",val_to_str(pd,gsm_a_pd_short_str_vals,"Unknown (%u)")); /* @@ -10930,15 +10928,6 @@ dissect_ccch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ proto_tree_add_item(pd_tree, hf_gsm_a_skip_ind, tvb, 1, 1, ENC_BIG_ENDIAN); /* - * N(SD) - */ - if ((pinfo->p2p_dir == P2P_DIR_RECV) && - nsd) - { - /* XXX */ - } - - /* * add DTAP message name */ proto_tree_add_uint_format(ccch_tree, hf_idx, tvb, offset, 1, oct, @@ -10947,7 +10936,7 @@ dissect_ccch(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree, void* data _U_ offset++; tap_p->pdu_type = GSM_A_PDU_TYPE_DTAP; - tap_p->message_type = (nsd ? (oct & 0x3f) : oct); + tap_p->message_type = oct; tap_p->protocol_disc = (gsm_a_pd_str_e)pd; tap_queue_packet(gsm_a_tap, pinfo, tap_p); |