[kernel][thread.c] remove duplicated clear to 0 (#5659)

This commit is contained in:
Man, Jianting (Meco) 2022-03-11 04:24:53 -05:00 committed by GitHub
parent e484ff5942
commit fa8c4bcaa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -258,8 +258,6 @@ static rt_err_t _thread_init(struct rt_thread *thread,
thread->module_id = 0; thread->module_id = 0;
#endif #endif
thread->user_data = 0;
RT_OBJECT_HOOK_CALL(rt_thread_inited_hook, (thread)); RT_OBJECT_HOOK_CALL(rt_thread_inited_hook, (thread));
return RT_EOK; return RT_EOK;