From nobody Sun Jan 02 19:08:05 2022 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id DF483191EF6E; Sun, 2 Jan 2022 19:08:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4JRpLF3pdwz4Y9X; Sun, 2 Jan 2022 19:08:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 62CA717147; Sun, 2 Jan 2022 19:08:05 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 202J85eF057590; Sun, 2 Jan 2022 19:08:05 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 202J85RL057589; Sun, 2 Jan 2022 19:08:05 GMT (envelope-from git) Date: Sun, 2 Jan 2022 19:08:05 GMT Message-Id: <202201021908.202J85RL057589@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: 840b422b7c4b - stable/13 - itimers_alloc: no need to initialize its_timers array List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 840b422b7c4b50fb83fb7ae8e82b99b7fab424f2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1641150485; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=FPL5vLVic6+sMOe98TVHouSqJlRutmCWK86T9q0Q6wk=; b=C+y5zNJuylnYu2hbGUcFmYsCh8gq1tPpbpryk5bwLymP3LvwKmIcTFadkYVPRPDrDHQyTD hM4OH3QDzg9isdIF3IRIoYfpoYAR1U2LMtem+hzECqoq6Y5jy4VqBp5LVQX1UdtPiVaMDF B+dsrBy6VJQVLeUjLtN2+9xKblGF8G9aes/sGfUJ7Lj0cM8DhMOIrLUuVO1s0NuRmOCMbr rcNQzENgRufE/dB1IKvKLEsfzCv8guRKeoMp0g+tU3P5AWXqm8nnv+kLKS2dK35I4KP2P3 ujcIuON/qzpDV+ISzSgimW+xxhD7YZG6RTI65M/P/9sIpjZsTaK+XU0YSWcR4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1641150485; a=rsa-sha256; cv=none; b=PoZwFK2mn9iqd+QJISGQyD99eKrjMpKcvAIXjdbZo3EuBtPx2xtLGjKFSuQux67eOuWU7X ABBRgzU6kDuCKiacVC5FJaLqKec+9VS7HqYYKBEc9cQHppIKrAf5c45LvhWDEsGYN//JBO bXm7o0vJl7KtWOTGPbSSyE/kS9wGGqNCd386sMN2StMhzoDHp8Q1Zlj1DkzjnQuAKBcnB3 lR5vZM3glTIncGY3ay4M3u+yAsqeWE1kpU9E35Zxt9E1SadTksU5v7reE1PyXk2Da4LlxW jGVLxiD5IYKAoZIVakZ6xA5Mgnc6hae7JEt2Wdsc6F4Dkzvme1yWuTh4LVBkBQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=840b422b7c4b50fb83fb7ae8e82b99b7fab424f2 commit 840b422b7c4b50fb83fb7ae8e82b99b7fab424f2 Author: Konstantin Belousov AuthorDate: 2021-12-27 18:32:01 +0000 Commit: Konstantin Belousov CommitDate: 2022-01-02 16:43:00 +0000 itimers_alloc: no need to initialize its_timers array (cherry picked from commit 3f1570847831e6dbcafc1f416f96404bf66048f2) --- sys/kern/kern_time.c | 3 --- 1 file changed, 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;