diff --git a/master/module.c b/master/module.c index 5923bc44..276d1469 100644 --- a/master/module.c +++ b/master/module.c @@ -611,10 +611,10 @@ unsigned int ecrt_version_magic(void) return ECRT_VERSION_MAGIC; } - +/*****************************************************************************/ /** Return pointer to running master -/*****************************************************************************/ + */ ec_master_t *ecrt_attach_master(unsigned int master_index) { ec_master_t *master = NULL; @@ -627,21 +627,16 @@ ec_master_t *ecrt_attach_master(unsigned int master_index) } master = &masters[master_index]; - if (master->reserved) - { + if (master->reserved) { // ok master is attached EC_INFO("attaching Master %u!\n", master_index); - } - else - { + } else { EC_ERR("No Master %u in use!\n", master_index); master = NULL; } return master; } - - /*****************************************************************************/ /** Global request state type translation table.