diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-12-27 18:32:01 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2022-01-02 16:43:00 +0000 |
commit | 840b422b7c4b50fb83fb7ae8e82b99b7fab424f2 (patch) | |
tree | 77d01cbed04340d6c9727f26f9f804dc3b9ea045 | |
parent | 802ff7fcee24cb224ea430ac45bece8f8743791f (diff) |
itimers_alloc: no need to initialize its_timers array
(cherry picked from commit 3f1570847831e6dbcafc1f416f96404bf66048f2)
-rw-r--r-- | sys/kern/kern_time.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sys/kern/kern_time.c b/sys/kern/kern_time.c index a52dc83e9b4c..4c53b728a500 100644 --- a/sys/kern/kern_time.c +++ b/sys/kern/kern_time.c @@ -1785,14 +1785,11 @@ static void itimers_alloc(struct proc *p) { struct itimers *its; - int i; its = malloc(sizeof (struct itimers), M_SUBPROC, M_WAITOK | M_ZERO); LIST_INIT(&its->its_virtual); LIST_INIT(&its->its_prof); TAILQ_INIT(&its->its_worklist); - for (i = 0; i < TIMER_MAX; i++) - its->its_timers[i] = NULL; PROC_LOCK(p); if (p->p_itimers == NULL) { p->p_itimers = its; |