فهرست منبع

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

Man, Jianting (Meco) 3 سال پیش
والد
کامیت
fa8c4bcaa2
1فایلهای تغییر یافته به همراه0 افزوده شده و 2 حذف شده
  1. 0 2
      src/thread.c

+ 0 - 2
src/thread.c

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