Skip to content

Commit fa8c4bc

Browse files
authored
[kernel][thread.c] remove duplicated clear to 0 (RT-Thread#5659)
1 parent e484ff5 commit fa8c4bc

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/thread.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,6 @@ static rt_err_t _thread_init(struct rt_thread *thread,
258258
thread->module_id = 0;
259259
#endif
260260

261-
thread->user_data = 0;
262-
263261
RT_OBJECT_HOOK_CALL(rt_thread_inited_hook, (thread));
264262

265263
return RT_EOK;

0 commit comments

Comments
 (0)