From nobody Sun Aug 21 11:29:32 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 4M9YDY1D2Yz4ZYj3; Sun, 21 Aug 2022 11:29:33 +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 4M9YDY0Lwnz3yj4; Sun, 21 Aug 2022 11:29:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081373; 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=NECdopl3L/Gx7V4Sj8xP8myO47/r370tDyJqc9E6uf4=; b=LqaTVGkoBzElxi6MotA5SI9VLc4VoXUVGln7wnf0uYRpd0ADa9BlbsdeIeEqQQM94J+HSJ ce0dBGS1m3vpg3ZvaI0GIrH9mjFmDYdK85RmsIb9NZB1H4CTH0iEr8xs0QdNX+AbOjFrEU 2ksWovWf7NNOG/5tjiUhFZ0zVsYWFD26mAg7wdzM3AQWlBlfrJCNe9mHVxTEdoeSIa3GgF DTtl5+pk2f3hKWh1RwT1AzKmAtpvrJcRg3jTy/mVciqlxA9Jch20Q3rPB6BbQjtM9W8DpZ 8jYIMddlzADKPzapcN5OqiaQK4XTCTZ57/Aj9lF+vNom4KW+9m6haQ4CODbxjw== 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 4M9YDX6LNTz17pC; Sun, 21 Aug 2022 11:29:32 +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 27LBTWUD005029; Sun, 21 Aug 2022 11:29:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 27LBTWjO005028; Sun, 21 Aug 2022 11:29:32 GMT (envelope-from git) Date: Sun, 21 Aug 2022 11:29:32 GMT Message-Id: <202208211129.27LBTWjO005028@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: c0089ba4592e - stable/12 - 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/12 X-Git-Reftype: branch X-Git-Commit: c0089ba4592ea737ec3f1330c5f4a111e326d00b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1661081373; 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=NECdopl3L/Gx7V4Sj8xP8myO47/r370tDyJqc9E6uf4=; b=eQgoQr5RbHwbDoUPP0j2b58sFuXXsIYELbZNlJLex/DDWHJ1uehyxw2rsSyQ+3mbDvjuVW f6LRZLy/KRidLL5nvfRxnvWe6T+3jNciFHpww9B58deqNd458TbixlbMQYsyhNnP/6X848 +mfTxpseCLaOsG2zp1nq5/H/fT7l90Q8Daxe4LTAUqGG8g6vMZjf5YJEghONx/ETxY7c+J iOjMIY6x8kEdw1EOkIlYUaNRBp3z/miDHJv9AZQMP2aIwOvZOeBxiik96QZXLva+Rc2QLI fM6FXVOtJf+CUIZBzLTNgdHKy02zpANGnjwmamGnQYC9mXe68Pq9cTRbidpUlg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1661081373; a=rsa-sha256; cv=none; b=rFVTuf+rbYQ6KH1m5/kgkNm7NkY/ilvwzBOUH0oLz7FK8t2S+6QQ6SM+U3XpN598giMnav Y1JMZwGfBary5C4xJHIoncvjeTarh9MoL529CMKpBRqB97ze8V1pVUbp3gypjBfMp9bfma jdaQG9dg1xMAn52/eLoR8+tl2xV4yEFJKFj6MFjUvB1Ja3IqIzVw74ffPjcHlPXUfmGpCn Rfr5l56f0Ittm6CGxQBPWb6b39qO5no0fCR2QXe2iDoovIVFK8OkNw7Bof1FfiAdKDE3d8 OYJ8S/x2ss8oie0gnahoh18xSKKqtiXx4hG6Yt7v9VLBqiIoUoGpfMKaAYn5Bg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/12 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=c0089ba4592ea737ec3f1330c5f4a111e326d00b commit c0089ba4592ea737ec3f1330c5f4a111e326d00b Author: Dimitry Andric AuthorDate: 2022-08-14 18:36:13 +0000 Commit: Dimitry Andric CommitDate: 2022-08-21 11:18:11 +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)