From nobody Wed Dec 15 11:22:12 2021 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 F3C9218ECA60; Wed, 15 Dec 2021 11:22:13 +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 4JDXs10FPyz4vQX; Wed, 15 Dec 2021 11:22:12 +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 4F1161B40F; Wed, 15 Dec 2021 11:22:12 +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 1BFBMC4I092170; Wed, 15 Dec 2021 11:22:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BFBMCk4092169; Wed, 15 Dec 2021 11:22:12 GMT (envelope-from git) Date: Wed, 15 Dec 2021 11:22:12 GMT Message-Id: <202112151122.1BFBMCk4092169@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Andriy Gapon Subject: git: b7bcd21d2da5 - main - rk_i2c_fill_tx: fixup previous commit 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: avg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b7bcd21d2da50364a512092cb4e75f2d53070ba6 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639567333; 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=ay97mc0tks7QMjWkbSX+Z/uZzpvLaE5B2D7BnPahLyo=; b=uaO2jKvZ0wybfpffg6KW43oPs35WE8NRyXis0q+1pEeJDp/KEt1YzDUHYNf9YVnOcV7CR5 N9TvwR3p51ofQNZiNF/yKyGI0qtsBhogFPIl4C/NmOMcBNPVvSMYmgmRaf6D+Rzz6HiL9c HlcxFv9KkOM9rFJTjojkLM+rc05Xv9/CuKhL5IDyPF2NwclBiB4r1I3BmAnP8ct96QT3/E YWkTP5devqkiYwD/T+/BeC7fNpUVuIP9cvrdj+atrAv61CeunOoRxQrALTVD3kLW5uOkxR OUuDSn4S9gS984EZM6lOr27S6g8m7vU5v+2KuEkXcSIpc/neHYvBmocjxKCOMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639567333; a=rsa-sha256; cv=none; b=iVwuYfjCiX+YaPni56IDsvaXg1a5ZmdkCqA3Gv21dTchEpu4sk81WxOLdIH5tHEOAmv5bf zYbjsmRQPcnd4xjP8wGlwmVXvI5qUQrmcAeyOITJ4g5d7X2I4iIgGdjr1RGbmawsMkm6Cc cpeOmAu0zpnHnq0Ev6bz6MUEVLo3vl7Mt2kR5vSnAQ88TfuBq2kBi+HOz1T/LRQCiPn5/n OTs9NNyLV5i1qvVX6KzPWudY2Gs+e7+kvefn+o4+S+gc1aKbK7xrKc0zcnc87ZEs5puRpG w1R8Lo+n8RIc/OQMf59C4gjRBJ6xUEE8XopA4iob3ntIpbdKvN8YeqfjvHSeeQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by avg: URL: https://cgit.FreeBSD.org/src/commit/?id=b7bcd21d2da50364a512092cb4e75f2d53070ba6 commit b7bcd21d2da50364a512092cb4e75f2d53070ba6 Author: Andriy Gapon AuthorDate: 2021-12-15 11:20:08 +0000 Commit: Andriy Gapon CommitDate: 2021-12-15 11:21:16 +0000 rk_i2c_fill_tx: fixup previous commit I forgot to amend the previous commit where i was uninitialized. Fixes: c6635459510c rk_i2c_fill_tx: fix a number of issues MFC after: 1 week --- sys/arm64/rockchip/rk_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/arm64/rockchip/rk_i2c.c b/sys/arm64/rockchip/rk_i2c.c index 67178f615b0a..ffe6f17ee0ac 100644 --- a/sys/arm64/rockchip/rk_i2c.c +++ b/sys/arm64/rockchip/rk_i2c.c @@ -226,7 +226,7 @@ rk_i2c_fill_tx(struct rk_i2c_softc *sc) if (len > RK_I2C_MAX_RXTX_LEN) len = RK_I2C_MAX_RXTX_LEN; - while (i < len) { + for (i = 0; i < len; ) { buf32 = 0; /* Process next 4 bytes or whatever remains. */