diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-10-18 15:50:32 +0200 |
---|---|---|
committer | Pascal Quantin <pascal.quantin@gmail.com> | 2014-10-18 16:15:34 +0000 |
commit | 8d6fd8dd2360a49d98f6253a17f66e2b23cfb76e (patch) | |
tree | 7b157a75821164902fcfcab96cb18b7dfdced496 /epan/dissectors/packet-gsm_a_rr.c | |
parent | 27e4ac85e82b4a672c9f362b26ce8acae4ee7c9d (diff) |
GSM(_a_rr): Fix Dead Store (Dead assignement/Dead increment) warning found by Clang
Change-Id: I07fe19af11bff3d001193e4af472c05090728392
Reviewed-on: https://code.wireshark.org/review/4814
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Diffstat (limited to 'epan/dissectors/packet-gsm_a_rr.c')
-rw-r--r-- | epan/dissectors/packet-gsm_a_rr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_a_rr.c b/epan/dissectors/packet-gsm_a_rr.c index 9f62115f70..fdae307a5d 100644 --- a/epan/dissectors/packet-gsm_a_rr.c +++ b/epan/dissectors/packet-gsm_a_rr.c @@ -2142,7 +2142,6 @@ de_rr_ch_dsc2(tvbuff_t *tvb, proto_tree *subtree, packet_info *pinfo _U_, guint3 /* Hopping sequence */ maio = ((oct8 & 0x0f)<<2) | ((tvb_get_guint8(tvb,curr_offset+1) & 0xc0) >> 6); hsn = (tvb_get_guint8(tvb,curr_offset+1) & 0x3f); - str = "Yes"; proto_tree_add_uint(subtree, hf_gsm_a_rr_hopping_channel_maio, tvb, curr_offset, 2, maio); proto_tree_add_uint(subtree, hf_gsm_a_rr_hsn, tvb, curr_offset, 2, hsn); @@ -2151,7 +2150,6 @@ de_rr_ch_dsc2(tvbuff_t *tvb, proto_tree *subtree, packet_info *pinfo _U_, guint3 { /* single ARFCN */ arfcn = ((oct8 & 0x03) << 8) | tvb_get_guint8(tvb,curr_offset+1); - str = "No"; proto_tree_add_bits_item(subtree, hf_gsm_a_rr_spare, tvb, (curr_offset<<3)+2, 2, ENC_NA); proto_tree_add_uint(subtree, hf_gsm_a_rr_single_channel_arfcn, tvb, curr_offset, 2, arfcn); |