Skip to content

Commit 8e6d82c

Browse files
authored
Merge pull request contiki-os#2691 from pjonsson/process-single-init
process: avoid zero-init global vars
2 parents d1a6a2f + 311d5bf commit 8e6d82c

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

os/sys/process.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
/*
5252
* Pointer to the currently running process structure.
5353
*/
54-
struct process *process_list = NULL;
55-
struct process *process_current = NULL;
54+
struct process *process_list;
55+
struct process *process_current;
5656

5757
static process_event_t lastevent;
5858

@@ -210,13 +210,6 @@ void
210210
process_init(void)
211211
{
212212
lastevent = PROCESS_EVENT_MAX;
213-
214-
nevents = fevent = 0;
215-
#if PROCESS_CONF_STATS
216-
process_maxevents = 0;
217-
#endif /* PROCESS_CONF_STATS */
218-
219-
process_current = process_list = NULL;
220213
}
221214
/*---------------------------------------------------------------------------*/
222215
/*

0 commit comments

Comments
 (0)