From nobody Wed Sep 20 17:38:16 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 4RrQjh6qv3z4txLn; Wed, 20 Sep 2023 17:38:16 +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 4RrQjh61rcz4fH2; Wed, 20 Sep 2023 17:38:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695231496; 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=ncsbrzZSUtkDF5LXZMmtHxX/c6BLP8Xq80tsYj7977g=; b=kSAzCpEM70rcXOzCdSQ7WQiFnly2p3ZJnmXwb3LrhBXMIO0zmOELJwymFrMwwx2ib02b7D Jd/JmeLpV2S4cTo0t+UUs0c2TvWi+9Zy9z4U5bFPFEUUy1dMmqB0FBsVDO6koKM1pxhC95 Fx2pWscFuhIoc7Ck2EyZDjFvpP3n40pYR+bWze9pF6qx9AFiuvLk24N3+fhSoTKGPbyO2S MGG9G32BpNmwkdOBjjJ6CNKHul+iR4WiUIE+RbqUFuietRBtQpHXoqFvimExq6pLbf+yuh dk2e54iE7EDRD/xE4i2BcTos3OcxwXPsxT8jIhuFL8zOQUUcaMueDOkpLa/vIg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695231496; a=rsa-sha256; cv=none; b=Ree4d0kD6qQ4YlP2itagSdTDfxwAhGeUSWS0ziMkHRWriOjwT9Y7prLPIYB1XeEAIyiA38 BptdTuaUBnhGJtqpJGTEot6B5OhajNonqhAn9/di6/P2f7R3VIhkok+iKVJEjihmLA8/kg GhblpFUVXHmRARzjpaikKlQDYkFrw8OfeTPIRkdOR4EdsRHzHAUbjUeew/cEV7puOEpEaY 7QrZ0n2poADuZqAvarB5xmRgf2SoF9D8uZNMAd42nQswm/EMHSUWtFG7b1ovaWKBcpwfI5 rnZV4ijTUGDRr/ihy4blEy2hmFzwk6ZZysj3bUGvZe7oZP+W4JqvXS36ySn30Q== 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=1695231496; 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=ncsbrzZSUtkDF5LXZMmtHxX/c6BLP8Xq80tsYj7977g=; b=O1SD57C713GEcrRJLO++RxBNYa46NE2jursg85zHlk4rE311QsTClulsj8HrxkwCQQXue+ BNY6v9wY0kqM6YZlqq5fW2pSuadYu2JO/SSp0UAxAP1LHeTWDuS5occKtaz3k81/IVF7fs yJOXlmiZ8dspkk8JUg/yellOKMNV3HRA4siyOVHVeynymca0LDxyUeyBOeBRlPqEFjvXIU dA9PuyjbU1b+EjeuoQTB9P54cODFB0sGElkqOzxGs7HeJEmAq1BhZTnZNwLZ9VDTvMQw5W oZ+JOE3n10+izYQlcdBPhNnDaDHdZPJm0mesTLKd9WExAUIPeobg0TGb6S1yHg== 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 4RrQjh52Fpz14Wh; Wed, 20 Sep 2023 17:38:16 +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 38KHcGnH002246; Wed, 20 Sep 2023 17:38:16 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38KHcGRU002243; Wed, 20 Sep 2023 17:38:16 GMT (envelope-from git) Date: Wed, 20 Sep 2023 17:38:16 GMT Message-Id: <202309201738.38KHcGRU002243@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Emmanuel Vadot Subject: git: e39e6bef6725 - main - 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/main X-Git-Reftype: branch X-Git-Commit: e39e6bef6725bde54f94aac7f0cda47c2170dc48 Auto-Submitted: auto-generated The branch main has been updated by manu: URL: https://cgit.FreeBSD.org/src/commit/?id=e39e6bef6725bde54f94aac7f0cda47c2170dc48 commit e39e6bef6725bde54f94aac7f0cda47c2170dc48 Author: Nicolas Provost AuthorDate: 2023-09-20 08:49:31 +0000 Commit: Emmanuel Vadot CommitDate: 2023-09-20 17:37:50 +0000 arm/allwinner: fix variables initialization in clkng Signed-off-by: Nicolas Provost Pull-Request: https://github.com/freebsd/freebsd-src/pull/849 --- 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;