Removed varsized_fields
authorFlorian Pose <fp@igh-essen.com>
Tue, 17 Oct 2006 07:25:13 +0000
changeset 399 40375a50be4e
parent 398 ff37601361a8
child 400 99c1085fd5e2
Removed varsized_fields
master/slave.c
master/slave.h
--- 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);
 }
--- 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. */
 };
 
 /*****************************************************************************/