From nobody Sun Aug 14 19:27:49 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 4M5S9f01dbz4YvN5; Sun, 14 Aug 2022 19:27:50 +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 4M5S9d6hVPz3LQX; Sun, 14 Aug 2022 19:27:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505269; 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=EHqrZUD5RuepSXxdcpuLkMjuT0ItZysy2jHOLEidVtY=; b=rOILIkX8MVBmo7T1NrJOZoGdo0VKk5R/pooQ1+esK3GJaC7TTxcgrapVlckQBc1fGmp83L b4Zz9K5eKYxt5sB2agq7miuhlI9L3SqjpdlsE03ukGkG24ScONFu2keAzGkJkjFI2y2ruX SwbzByLV5iQAqkD7VCzzBClHo8AJqhf3j1+Ha9LwbJRniV6E98GTFSsK9ckfxU84fxUx01 i4NREvKjEOPiTVtrTHcvEoJ52cc6U+63DRmncdeHnPMnc5yrT05UVc3Qw00aEEafQBAXnF sGEPdUK+MzuyPtXftZxodxjhEl2h53j4yh7srpHr48dGqEsKurz0RWpMdACwYA== 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 4M5S9d5f1vz12Zv; Sun, 14 Aug 2022 19:27:49 +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 27EJRnLI044178; Sun, 14 Aug 2022 19:27:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27EJRnpu044177; Sun, 14 Aug 2022 19:27:49 GMT (envelope-from git) Date: Sun, 14 Aug 2022 19:27:49 GMT Message-Id: <202208141927.27EJRnpu044177@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Dimitry Andric Subject: git: 0fe8ab685168 - main - 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/main X-Git-Reftype: branch X-Git-Commit: 0fe8ab6851687dc7249e3c5b5df3d6723d1c3e7a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1660505269; 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=EHqrZUD5RuepSXxdcpuLkMjuT0ItZysy2jHOLEidVtY=; b=xCYQaTDmLrlbwdQAdXyelNhg81ZbVCo3/wenjTTS36YPv4HCaCNtHaVxxwHo9Bt5aBY4Y/ 2xSvMBV4W5Urz19yovUN9IWT+vewVKz/rdVZen8K1hjMTtl2p/eZnzconmRstTpNQC1Yv1 dpr0tnpz/9N5OlCmcsObllcFPI61EOtX0BBmZwMTEv2MHE4M8mJb+VPHbvMG3E7RPNKhhk AkOZjCnpgisLocUMANcceGEEDmOs0iXHDRPfRa4vVuZmBGoFFseedNUmQW7DZ2MhUbXNXD 4wjFdUt2YdlG4wwVRejmofgXWy0+/5DH6wr3mZpRmLdWR0kEtAxk37ItQB5ijg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1660505269; a=rsa-sha256; cv=none; b=RVqhCLzV9CR1EXBzQXzjj7lAeQzCWyA3zno3KkjkZmuIPM2sgISPGvMFGmnFzTJhaHF5Xd +ZmweGbbFF5I8T4QhHrD5GWy+r2nRxOIFvFahrf1a/dRc6XuMzA38cTzyAinBtb3nSXC0n 6rVZhM+V6q+4m7ZQHRhGkuGxACK9Xba3nN8VH+zqi1H4w4HwDXWbfRq+grYXai0oYeR3FF WCrAL43m/TSy1SdXzZLWA+FfYijvj3wwgpUpVwAndwKubGeEpOjZbtA8HdML+lkZ0MfPiI zLnhw+73y7M7T1Kplpv71dJpv1Du80LOjvf/79H2lVHwE6s1MmLCKw3rQT/UOw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=0fe8ab6851687dc7249e3c5b5df3d6723d1c3e7a commit 0fe8ab6851687dc7249e3c5b5df3d6723d1c3e7a Author: Dimitry Andric AuthorDate: 2022-08-14 18:36:13 +0000 Commit: Dimitry Andric CommitDate: 2022-08-14 19:27:34 +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 --- 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 d6ed51278dd7..fcdc3b181967 100644 --- a/sys/arm64/rockchip/rk_spi.c +++ b/sys/arm64/rockchip/rk_spi.c @@ -226,12 +226,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)