diff -r fb6ec8610ada -r b45438edf869 master/fsm_foe.c --- a/master/fsm_foe.c Mon Jan 09 17:42:12 2012 +0100 +++ b/master/fsm_foe.c Mon Jan 09 17:42:28 2012 +0100 @@ -627,15 +627,12 @@ ec_fsm_foe_t *fsm /**< FoE statemachine. */ ) { - size_t current_size; ec_slave_t *slave = fsm->slave; fsm->rx_buffer_offset = 0; fsm->rx_expected_packet_no = 1; fsm->rx_last_packet = 0; - current_size = fsm->rx_filename_len; - #ifdef DEBUG_FOE printk("ec_fsm_foe_read_start()\n"); #endif