aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-gsm_a_common.c
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2021-01-13 21:58:17 +0100
committerWireshark GitLab Utility <gerald+gitlab-utility@wireshark.org>2021-01-14 10:19:49 +0000
commitd9abd5005d64e66c252fe5d0d41a977094c773e3 (patch)
treea92c18107af838ffaee66fbf7ac4b8ec88da65cf /epan/dissectors/packet-gsm_a_common.c
parentdedfbc9d202db6aafa74566a5d58e28afe94d8e9 (diff)
gsm_a_common: remove a variable that is always 0
All of the stat_tap_table_ui structs use a single table at offset 0.
Diffstat (limited to 'epan/dissectors/packet-gsm_a_common.c')
-rw-r--r--epan/dissectors/packet-gsm_a_common.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/epan/dissectors/packet-gsm_a_common.c b/epan/dissectors/packet-gsm_a_common.c
index 3b84195777..0c63fa8ca2 100644
--- a/epan/dissectors/packet-gsm_a_common.c
+++ b/epan/dissectors/packet-gsm_a_common.c
@@ -3779,13 +3779,12 @@ gsm_a_stat_packet(void *tapdata, const void *gatr_ptr, guint8 pdu_type, int prot
const gsm_a_tap_rec_t *gatr = (const gsm_a_tap_rec_t *) gatr_ptr;
stat_tap_table* table;
stat_tap_table_item_type* msg_data;
- guint i = 0;
if (gatr->pdu_type != pdu_type) return TAP_PACKET_DONT_REDRAW;
if (pdu_type == BSSAP_PDU_TYPE_DTAP && (int)gatr->protocol_disc != protocol_disc) return TAP_PACKET_DONT_REDRAW;
if (pdu_type == GSM_A_PDU_TYPE_SACCH && gatr->protocol_disc != 0) return TAP_PACKET_DONT_REDRAW;
- table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, i);
+ table = g_array_index(stat_data->stat_tap_data->tables, stat_tap_table*, 0);
msg_data = stat_tap_get_field_data(table, gatr->message_type, COUNT_COLUMN);
msg_data->value.uint_value++;
stat_tap_set_field_data(table, gatr->message_type, COUNT_COLUMN, msg_data);