Merge pull request #437 from KodakWang/patch-2

[DeviceIPC] Fixed completion.c
This commit is contained in:
Bernard Xiong 2015-03-24 21:39:17 +08:00
commit cdd9a2e086
1 changed files with 2 additions and 2 deletions

View File

@ -95,10 +95,10 @@ rt_err_t rt_completion_wait(struct rt_completion *completion,
result = thread->error; result = thread->error;
level = rt_hw_interrupt_disable(); level = rt_hw_interrupt_disable();
/* clean completed flag */
completion->flag = RT_UNCOMPLETED;
} }
} }
/* clean completed flag */
completion->flag = RT_UNCOMPLETED;
__exit: __exit:
rt_hw_interrupt_enable(level); rt_hw_interrupt_enable(level);