camel: remove a variable that is always 0
This is another case where we have a single table at index 0.
This commit is contained in:
parent
a07898a280
commit
26e4b84623
|
@ -1192,9 +1192,8 @@ camel_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_
|
|||
const struct camelsrt_info_t *csi = (const struct camelsrt_info_t *) csi_ptr;
|
||||
stat_tap_table* table;
|
||||
stat_tap_table_item_type* msg_data;
|
||||
guint i = 0;
|
||||
|
||||
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);
|
||||
if (csi->opcode >= table->num_elements)
|
||||
return TAP_PACKET_DONT_REDRAW;
|
||||
msg_data = stat_tap_get_field_data(table, csi->opcode, COUNT_COLUMN);
|
||||
|
|
|
@ -8222,9 +8222,8 @@ camel_stat_packet(void *tapdata, packet_info *pinfo _U_, epan_dissect_t *edt _U_
|
|||
const struct camelsrt_info_t *csi = (const struct camelsrt_info_t *) csi_ptr;
|
||||
stat_tap_table* table;
|
||||
stat_tap_table_item_type* msg_data;
|
||||
guint i = 0;
|
||||
|
||||
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);
|
||||
if (csi->opcode >= table->num_elements)
|
||||
return TAP_PACKET_DONT_REDRAW;
|
||||
msg_data = stat_tap_get_field_data(table, csi->opcode, COUNT_COLUMN);
|
||||
|
@ -8307,7 +8306,7 @@ void proto_reg_handoff_camel(void) {
|
|||
|
||||
|
||||
/*--- End of included file: packet-camel-dis-tab.c ---*/
|
||||
#line 1273 "./asn1/camel/packet-camel-template.c"
|
||||
#line 1272 "./asn1/camel/packet-camel-template.c"
|
||||
} else {
|
||||
range_foreach(ssn_range, range_delete_callback, NULL);
|
||||
wmem_free(wmem_epan_scope(), ssn_range);
|
||||
|
@ -10429,7 +10428,7 @@ void proto_register_camel(void) {
|
|||
"InvokeId_present", HFILL }},
|
||||
|
||||
/*--- End of included file: packet-camel-hfarr.c ---*/
|
||||
#line 1446 "./asn1/camel/packet-camel-template.c"
|
||||
#line 1445 "./asn1/camel/packet-camel-template.c"
|
||||
};
|
||||
|
||||
/* List of subtrees */
|
||||
|
@ -10657,7 +10656,7 @@ void proto_register_camel(void) {
|
|||
&ett_camel_InvokeId,
|
||||
|
||||
/*--- End of included file: packet-camel-ettarr.c ---*/
|
||||
#line 1473 "./asn1/camel/packet-camel-template.c"
|
||||
#line 1472 "./asn1/camel/packet-camel-template.c"
|
||||
};
|
||||
|
||||
static ei_register_info ei[] = {
|
||||
|
|
Loading…
Reference in New Issue