# HG changeset patch # User Florian Pose # Date 1316703174 -7200 # Node ID 05c6ddef33abdc5e716adeaae4634cbcab4ee2ed # Parent a63ed5513117daa8814ca53dfa326d5fdc611763 Fixed missing return causing slaves not going to OP. diff -r a63ed5513117 -r 05c6ddef33ab master/fsm_master.c --- a/master/fsm_master.c Mon Sep 19 13:12:32 2011 +0200 +++ b/master/fsm_master.c Thu Sep 22 16:52:54 2011 +0200 @@ -212,7 +212,8 @@ fsm->slaves_responding); } - if (fsm->link_state && !master->main_device.link_state) { // link went down + if (fsm->link_state && !master->main_device.link_state) { + // link went down EC_MASTER_DBG(master, 1, "Master state machine detected " "link down. Clearing slave list.\n"); @@ -267,7 +268,8 @@ } size = sizeof(ec_slave_t) * master->slave_count; - if (!(master->slaves = (ec_slave_t *) kmalloc(size, GFP_KERNEL))) { + if (!(master->slaves = + (ec_slave_t *) kmalloc(size, GFP_KERNEL))) { EC_MASTER_ERR(master, "Failed to allocate %u bytes" " of slave memory!\n", size); master->slave_count = 0; // TODO avoid retrying scan! @@ -578,6 +580,7 @@ fsm->slave = master->slaves; // begin with first slave ec_fsm_master_enter_write_system_times(fsm); + return; } // Does the slave have to be configured?