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>
This commit is contained in:
Jaap Keuter 2016-03-23 19:18:48 +01:00 committed by Michael Mann
parent df8b5cbdc0
commit 01faf39794
1 changed files with 1 additions and 12 deletions

View File

@ -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)"));
/*
@ -10929,15 +10927,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
*/
@ -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);