From nobody Wed Oct 18 14:37:57 2023 X-Original-To: dev-commits-src-all@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 4S9YNj4rvVz4x6hW; Wed, 18 Oct 2023 14:37:57 +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 4S9YNj4CMdz3YZ3; Wed, 18 Oct 2023 14:37:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697639877; 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=uHDMdcoOoPmHOvz1QE+klaZxYUyH03+PGl77QAy8HOI=; b=mQ3InmqySZWbkrjEgFIT/uogFn6fTem2eMUIOTd9W9oNtxI4y7XaeubPYgMdeQXVJG1l8r d7nZzDFI0KtubmwJ1SyWXTZ+SMAmodNwO9OT8QFF397VHdc6i9fq9NN4Un1v1/uZ9o84fJ 36QQE5JVVuLE3Q5/oh/3luqK6XbP01k7lUmQLH9D+nxdVjsmgKLbCk0m4Qf/1aGzEVG5GP 2/wAtWBEb0ZUv8CURlcb3S0BELWftjxp/gjVTCwyTAjLztQxnixQHYW71gtLiVTUt7VPxi vyvOfR81DDo0LpOj/PWQz5PJ5zZrTZPxV85aeJzcYZy39mf2bF9+xHmi/Oje4A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697639877; a=rsa-sha256; cv=none; b=lJvqllxuaoD8BqerCHoZa49zxhAvyCZV0Z5QKJA31BMIdTHMZLaczlyt/KNk2FxKSDjMUo yE8rAGSNeuiUTNDdxNMMvN16F/QfR588CCMKunqGGgrw+JLroGh3eV9HUwzexolj9P0WWm pdJkjrV2oSu+DgMefp9smL3OLgAedzEWTmmpwM9ZBgn6cPlQVzcYABvNPiRbpwZcXWDXfL 68CZEsKjCtiL2KAR9JmN5nZwW0Xbk/BM3oTyxCH+0IHH3ANHRuP1X7t9o7X68dMFyB3ro0 FrhSASyk+XWfjmua/4VyxM1+Vnlh6mZMnVn9Db2ZgkqUUA1g/W8OmozoiAOePw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697639877; 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=uHDMdcoOoPmHOvz1QE+klaZxYUyH03+PGl77QAy8HOI=; b=jzFMBeqyflBcOUhPzhzHyiKNeyfsAkH+RpL4oxQ4roUW58Hukg8RtvUhlopRcnaAZm9fHl MSP0it08+rMpUNDA6G+hauEA8+jdCp33zQJ5l3rCyaX1DeB/v1OAFur6V/jYsrjVpkXdjs BfMZ1Dnwqx3MUWPizwEsv20iul2AXfOHdb8Tnu8hb94Q4QIi0d9amRXUyX0O4yfgcwh7cf kEc4DxMSU2oDEIfEfOoxdzsvJK0fxbR69Q6wG7qg4UzO6HOAXN/7/JDemBmGxEhCs7KEIr gZ6JP9dkoziN0blXTWM+R7Q6Aw5QOoG0ZVb7MidZM1uNQNG4oc8okpvYsv2slQ== 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 4S9YNj3C0Qz18YT; Wed, 18 Oct 2023 14:37:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39IEbvYM093952; Wed, 18 Oct 2023 14:37:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39IEbvcb093949; Wed, 18 Oct 2023 14:37:57 GMT (envelope-from git) Date: Wed, 18 Oct 2023 14:37:57 GMT Message-Id: <202310181437.39IEbvcb093949@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Emmanuel Vadot Subject: git: 141fe209e367 - stable/14 - arm/allwinner: fix variables initialization in clkng List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: manu X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 141fe209e367de8a1c251e9ec34e10ee64ef8263 Auto-Submitted: auto-generated The branch stable/14 has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=141fe209e367de8a1c251e9ec34e10ee64ef8263 commit 141fe209e367de8a1c251e9ec34e10ee64ef8263 Author: Nicolas Provost AuthorDate: 2023-09-20 08:49:31 +0000 Commit: Emmanuel Vadot CommitDate: 2023-10-18 14:37:35 +0000 arm/allwinner: fix variables initialization in clkng Signed-off-by: Nicolas Provost Pull-Request: https://github.com/freebsd/freebsd-src/pull/849 (cherry picked from commit e39e6bef6725bde54f94aac7f0cda47c2170dc48) --- sys/arm/allwinner/clkng/aw_clk_m.c | 2 +- sys/arm/allwinner/clkng/aw_clk_nm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arm/allwinner/clkng/aw_clk_m.c b/sys/arm/allwinner/clkng/aw_clk_m.c index 1d3d5a9878f7..2728ff230a9f 100644 --- a/sys/arm/allwinner/clkng/aw_clk_m.c +++ b/sys/arm/allwinner/clkng/aw_clk_m.c @@ -135,7 +135,7 @@ static uint64_t aw_clk_m_find_best(struct aw_clk_m_sc *sc, uint64_t fparent, uint64_t *fout, uint32_t *factor_m) { - uint64_t cur, best; + uint64_t cur, best = 0; uint32_t m, max_m, min_m; *factor_m = 0; diff --git a/sys/arm/allwinner/clkng/aw_clk_nm.c b/sys/arm/allwinner/clkng/aw_clk_nm.c index a1cba2db5f76..61592eb04de1 100644 --- a/sys/arm/allwinner/clkng/aw_clk_nm.c +++ b/sys/arm/allwinner/clkng/aw_clk_nm.c @@ -136,7 +136,7 @@ static uint64_t aw_clk_nm_find_best(struct aw_clk_nm_sc *sc, uint64_t fparent, uint64_t *fout, uint32_t *factor_n, uint32_t *factor_m) { - uint64_t cur, best; + uint64_t cur, best = 0; uint32_t m, n, max_m, max_n, min_m, min_n; *factor_n = *factor_m = 0;