[Cbe-oss-dev] [PATCH] MARS: fix switch statements to follow kernel coding standard
Yuji Mano
Yuji.Mano at am.sony.com
Thu Aug 7 07:03:21 EST 2008
This fixes some switch statements that were not complying with kernel coding
standards.
Signed-off-by: Yuji Mano <yuji.mano at am.sony.com>
---
src/mpu/kernel/mars_kernel_workload.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
--- a/src/mpu/kernel/mars_kernel_workload.c
+++ b/src/mpu/kernel/mars_kernel_workload.c
@@ -66,7 +66,7 @@ void workload_run(void)
workload_state = MARS_WORKLOAD_STATE_RUNNING;
/* workload type specific handling */
- switch(workload_type) {
+ switch (workload_type) {
case MARS_WORKLOAD_TYPE_TASK:
task_run((struct mars_task_context *)&workload);
break;
@@ -79,7 +79,7 @@ void workload_stop(void)
workload_state = MARS_WORKLOAD_STATE_FINISHED;
/* workload type specific handling */
- switch(workload_type) {
+ switch (workload_type) {
case MARS_WORKLOAD_TYPE_TASK:
task_stop((struct mars_task_context *)&workload);
break;
@@ -92,7 +92,7 @@ void workload_save(void)
workload_state = MARS_WORKLOAD_STATE_READY;
/* workload type specific handling */
- switch(workload_type) {
+ switch (workload_type) {
case MARS_WORKLOAD_TYPE_TASK:
/* save non-volatile registers */
registers_save();
@@ -109,7 +109,7 @@ void workload_restore(void)
workload_state = MARS_WORKLOAD_STATE_RUNNING;
/* workload type specific handling */
- switch(workload_type) {
+ switch (workload_type) {
case MARS_WORKLOAD_TYPE_TASK:
/* restore the task context from main memory */
task_restore((struct mars_task_context *)&workload);
@@ -161,7 +161,7 @@ int workload_schedule(uint16_t workload_
MARS_DMA_TAG);
/* workload type specific handling */
- switch(schedule_workload_type) {
+ switch (schedule_workload_type) {
case MARS_WORKLOAD_TYPE_TASK:
task_schedule((struct mars_task_context *)
&schedule_workload,
@@ -312,7 +312,7 @@ void workload_signal_wait(void)
workload_state = MARS_WORKLOAD_STATE_WAITING;
/* workload type specific handling */
- switch(workload_type) {
+ switch (workload_type) {
case MARS_WORKLOAD_TYPE_TASK:
/* save non-volatile registers */
registers_save();
More information about the cbe-oss-dev
mailing list