aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_rr.c
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2012-05-13 14:00:10 +0000
committerAnders Broman <anders.broman@ericsson.com>2012-05-13 14:00:10 +0000
commit6d757a2083668c1c27cb00fb5e7a6dfbb5db04fd (patch)
treecb303e84d05436520f6ba106b544f0d318a4769a /epan/dissectors/packet-gsm_a_rr.c
parent09c5089ebc0e9859a7065e5dc44b564fce4a998d (diff)
Renove redundant code
svn path=/trunk/; revision=42611
Diffstat (limited to 'epan/dissectors/packet-gsm_a_rr.c')
-rw-r--r--epan/dissectors/packet-gsm_a_rr.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/epan/dissectors/packet-gsm_a_rr.c b/epan/dissectors/packet-gsm_a_rr.c
index 7fb64a1ade..056f36d9d2 100644
--- a/epan/dissectors/packet-gsm_a_rr.c
+++ b/epan/dissectors/packet-gsm_a_rr.c
@@ -1638,17 +1638,13 @@ static const crumb_spec_t gsm_a_rr_dtx_sacch_crumbs[] = {
static guint16
de_rr_cell_opt_sacch(tvbuff_t *tvb, proto_tree *subtree, packet_info *pinfo _U_, guint32 offset, guint len _U_, gchar *add_string _U_, int string_len _U_)
{
- guint8 oct;
- guint8 dtx;
guint32 curr_offset;
curr_offset = offset;
- oct = tvb_get_guint8(tvb, curr_offset);
- dtx = ((oct&0x80)>>5)|((oct&0x30)>>4); /* DTX is a split filed in bits 8, 6 and 5 */
proto_tree_add_bits_item(subtree, hf_gsm_a_rr_pwrc, tvb, (curr_offset<<3)+1, 1, ENC_BIG_ENDIAN);
-
+ /* DTX is a split filed in bits 8, 6 and 5 */
proto_tree_add_split_bits_item_ret_val(subtree, hf_gsm_a_rr_dtx_sacch, tvb, (curr_offset<<3), gsm_a_rr_dtx_sacch_crumbs, NULL);
proto_tree_add_item(subtree, hf_gsm_a_rr_radio_link_timeout, tvb, curr_offset, 1, ENC_BIG_ENDIAN);