[components][drivers][ipc] 初始化工作对象所有成员

This commit is contained in:
tangyuxin 2019-04-28 14:31:57 +08:00
parent b57e075867
commit 91345d62af
1 changed files with 2 additions and 0 deletions

View File

@ -74,6 +74,8 @@ rt_inline void rt_work_init(struct rt_work *work, void (*work_func)(struct rt_wo
rt_list_init(&(work->list));
work->work_func = work_func;
work->work_data = work_data;
work->flags = 0;
work->type = 0;
}
void rt_delayed_work_init(struct rt_delayed_work *work, void (*work_func)(struct rt_work *work,