From nobody Sun Aug 21 11:28:58 2022 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 4M9YCv2G4Zz4ZYWG; Sun, 21 Aug 2022 11:28:59 +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 4M9YCv1dPDz3w8m; Sun, 21 Aug 2022 11:28:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081339; 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=2KAr/l3uuSJO9NDc1b1vJQD+a7VyOd3Zg841AxLkQ5k=; b=Zus3TQJDqmolV9Q3lUwFZ0XJHeBG0NihfY9XJJd4S8bP5C+S5GQL1pRDMXQ+6HpPLzRQdY GVrGAK8x/tFJbKjjGip/2DtJ/rwwYh95h1uqxgKG+gbgHXBdT4PxbIL4lPu9//f9+LPbZe RGbeu2yLN88Yw8WYU6Va8AFXJNuFTbRWuVejwfqJ8+vpzYep/c4EFrmgj4J8m8hNXMu92p Bv6HLuLXQCANZ1K/UR7VcewakJ0j4VihZucycAIN1g26MGUVdru+iGDyBL2ixh5VhTlw1V UA9Dz6SpBhKUxhB+KqXBBClEyPR++uGJFTUydCuAfnQDeJvemwRe85XA7ndgSQ== 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 4M9YCv0hxsz17p9; Sun, 21 Aug 2022 11:28:59 +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 27LBSxtS004182; Sun, 21 Aug 2022 11:28:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBSwjk004180; Sun, 21 Aug 2022 11:28:58 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:28:58 GMT Message-Id: <202208211128.27LBSwjk004180@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Dimitry Andric Subject: git: 4922e544ee86 - stable/13 - Fix unused variable warning in rockchip's rk_spi.c 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: dim X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 4922e544ee8659252a04fbab1e002361cfd300b4 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081339; 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=2KAr/l3uuSJO9NDc1b1vJQD+a7VyOd3Zg841AxLkQ5k=; b=WN0GAovyO8Ei4N8vvlb8JuEWCAVpq8mmMeFPpkcOd/DXfk3wInM8pp4Va3kTwS8B16KZag ljhUsbPlNWTRJv117zAhwTbzNBII5la7axqzKYrysxD0ZP+HgpYHjMHdqSazp47+Zmnwtw GtkgZddTMVz8IHRpeRzg7P+U48LDXeXZIrVjXcBhJAok7hPQH+UBsUl9GmgkHbMk655MMc PMpg+hzNtw8GUtXJgO2xrNI7+yHHefS0KAsuOOgxUptYSgHrXyHNsInfL9wk6Nef+Rp18O HFpZ9IeLUXxZBTpkshG6zOhnO2qDQHJXlxu4CjWXON3wZDLLTjtDIarflmr1yA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081339; a=rsa-sha256; cv=none; b=q8OJJcaq01wU2e4hmAYMrbyqLbHThviKeL90qj1kO87Jb7qJ+czYWGO6OZZoSSsbtr+sVe MOuOJkxmaWi8SLPPc31dAMXKAJaSdjaaqhKsz1aRsRhhx86EeX1AwmFz2Tvr+RPh83oWYr e9WtS9jHwMF87751ps72MG2TJTEzxLxOo5FsyW/+iDlehA4Zu9uNPEUqDo9IP9udicVBmF Z0/Wo8BPlgTtnc0FC25F6I9yBaCLEWvJNvvcpv1KjJeOuIkZgCz3BToGOfwwctvpM1eAnw D7ygdYPTG80IRXpgWtT8iu1Z+MogHfU2hi1CrhhoosPCKljaSKoQXpOot3iMww== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=4922e544ee8659252a04fbab1e002361cfd300b4 commit 4922e544ee8659252a04fbab1e002361cfd300b4 Author: Dimitry Andric AuthorDate: 2022-08-14 18:36:13 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:10:50 +0000 Fix unused variable warning in rockchip's rk_spi.c With clang 15, the following -Werror warning is produced: sys/arm64/rockchip/rk_spi.c:229:6: error: variable 'cnt' set but not used [-Werror,-Wunused-but-set-variable] int cnt = 0; ^ The 'cnt' variable was in rk_spi.c when it was first added, but it appears to have been a debugging aid that has never been used, so remove it. MFC after: 3 days (cherry picked from commit 0fe8ab6851687dc7249e3c5b5df3d6723d1c3e7a) --- sys/arm64/rockchip/rk_spi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/arm64/rockchip/rk_spi.c b/sys/arm64/rockchip/rk_spi.c index 4df1208f40aa..a5f0d93263d8 100644 --- a/sys/arm64/rockchip/rk_spi.c +++ b/sys/arm64/rockchip/rk_spi.c @@ -225,12 +225,10 @@ rk_spi_fill_txfifo(struct rk_spi_softc *sc) { uint32_t txlevel; txlevel = RK_SPI_READ_4(sc, RK_SPI_TXFLR); - int cnt = 0; while (sc->txidx < sc->txlen && txlevel < sc->fifo_size) { RK_SPI_WRITE_4(sc, RK_SPI_TXDR, sc->txbuf[sc->txidx++]); txlevel++; - cnt++; } if (sc->txidx != sc->txlen)