Changeset 40a24661 in rtems


Ignore:
Timestamp:
Mar 21, 2015, 7:14:45 PM (4 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
2429766
Parents:
d4edbdbc
git-author:
Sebastian Huber <sebastian.huber@…> (03/21/15 19:14:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (03/21/15 19:15:37)
Message:

sptests/spintrcritical23: Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/spintrcritical23/init.c

    rd4edbdbc r40a24661  
    6868  test_context *ctx = &ctx_instance;
    6969  rtems_interrupt_lock_context lock_context;
    70   rtems_task_priority priority_interrupt;
    71   rtems_task_priority priority_task;
    7270
    7371  rtems_interrupt_lock_acquire(&ctx->lock, &lock_context);
     
    7674      && scheduler_node_unchanged(ctx)
    7775  ) {
    78     ctx->done = true;
     76    rtems_task_priority priority_interrupt;
     77    rtems_task_priority priority_task;
     78    rtems_task_priority previous;
     79    rtems_status_code sc;
     80
    7981    priority_interrupt = ctx->priority_interrupt;
    8082    priority_task = ctx->priority_task;
    81   }
    82   rtems_interrupt_lock_release(&ctx->lock, &lock_context);
    8383
    84   if (ctx->done) {
    85     rtems_status_code sc;
    86     rtems_task_priority previous;
     84    rtems_interrupt_lock_release(&ctx->lock, &lock_context);
    8785
    8886    sc = rtems_task_set_priority(
     
    9391    rtems_test_assert(sc == RTEMS_SUCCESSFUL);
    9492    rtems_test_assert(previous == priority_task);
     93
     94    ctx->done = true;
     95  } else {
     96    rtems_interrupt_lock_release(&ctx->lock, &lock_context);
    9597  }
    9698}
Note: See TracChangeset for help on using the changeset viewer.