# HG changeset patch # User Florian Pose # Date 1161069913 0 # Node ID 40375a50be4efb8ee23e7997098971312ff1c2ca # Parent ff37601361a8d3dc29919b608d0e6f4333a6cbfd Removed varsized_fields diff -r ff37601361a8 -r 40375a50be4e master/slave.c --- a/master/slave.c Mon Oct 16 14:38:14 2006 +0000 +++ b/master/slave.c Tue Oct 17 07:25:13 2006 +0000 @@ -156,7 +156,6 @@ INIT_LIST_HEAD(&slave->sii_pdos); INIT_LIST_HEAD(&slave->sdo_dictionary); INIT_LIST_HEAD(&slave->sdo_confs); - INIT_LIST_HEAD(&slave->varsize_fields); for (i = 0; i < 4; i++) { slave->dl_link[i] = 0; @@ -184,7 +183,6 @@ ec_sdo_t *sdo, *next_sdo; ec_sdo_entry_t *en, *next_en; ec_sdo_data_t *sdodata, *next_sdodata; - ec_varsize_t *var, *next_var; slave = container_of(kobj, ec_slave_t, kobj); @@ -240,12 +238,6 @@ kfree(sdodata); } - // free information about variable sized data fields - list_for_each_entry_safe(var, next_var, &slave->varsize_fields, list) { - list_del(&var->list); - kfree(var); - } - if (slave->eeprom_data) kfree(slave->eeprom_data); if (slave->new_eeprom_data) kfree(slave->new_eeprom_data); } diff -r ff37601361a8 -r 40375a50be4e master/slave.h --- a/master/slave.h Mon Oct 16 14:38:14 2006 +0000 +++ b/master/slave.h Tue Oct 17 07:25:13 2006 +0000 @@ -302,11 +302,8 @@ ec_fmmu_t fmmus[EC_MAX_FMMUS]; /**< FMMU configurations */ uint8_t fmmu_count; /**< number of FMMUs used */ - struct list_head sdo_dictionary; /**< SDO directory list */ + struct list_head sdo_dictionary; /**< SDO dictionary list */ struct list_head sdo_confs; /**< list of SDO configurations */ - - struct list_head varsize_fields; /**< size information for variable-sized - data fields. */ }; /*****************************************************************************/