mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 02:58:09 +08:00
smp03: Remove set but not used warning.
Added status validation.
This commit is contained in:
@@ -83,7 +83,9 @@ rtems_task Init(
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&id
|
||||
);
|
||||
directive_failed( status, "rtems_task_create" );
|
||||
status = rtems_task_start( id, Test_task, i );
|
||||
directive_failed( status, "rtems_task_start" );
|
||||
|
||||
/* Allow task to start before starting next task.
|
||||
* This is necessary on some simulators.
|
||||
@@ -101,7 +103,9 @@ rtems_task Init(
|
||||
RTEMS_DEFAULT_ATTRIBUTES,
|
||||
&id
|
||||
);
|
||||
directive_failed( status, "rtems_task_create" );
|
||||
status = rtems_task_start(id,Test_task,rtems_get_processor_count());
|
||||
directive_failed( status, "rtems_task_start" );
|
||||
|
||||
/* Wait on all tasks to run */
|
||||
while (1) {
|
||||
|
||||
Reference in New Issue
Block a user