From nobody Sat Apr 09 00:28:03 2022 X-Original-To: dev-commits-src-main@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 5B1921AAC722; Sat, 9 Apr 2022 00:28:04 +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 4KZwv74F9Qz3pGj; Sat, 9 Apr 2022 00:28:03 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464084; 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=Swv4+q9fT63ONJL9uinNRLU3cVUIig7ZAclVw52gVQk=; b=h9tYaFnIrqIfRoq8+P8CWnIlq/4NZ7C4D2mZ0TArgO8/p1012PwGyGpLWnD2JGiijzmXCA oLWcXGnsZ5xZyCqLN2llX5K1dPr6rT4zcpm+sGvaS7TMfbAVax3G6Z+86PLQWnZKs+/JsJ d3henQ++6oi1c61SIUPWSPsPnWEmZULc4ls+qEEjLyMjy5a8HymkGww6B02p4szytrlwcs SSVi2EcLxrmF/dH5eOPjUukcGTdYpYYuZBlJrvYB1UHWNqrhIr3XNk+dQEqF+RFThiCjBh KrTgASoS9s3MTxijpbJdyUuDuwaRt2rKu4Enscb+xs9lgKEiFYKmtU6PNPwmiw== 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 62F7B7981; Sat, 9 Apr 2022 00:28:03 +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 2390S33n056821; Sat, 9 Apr 2022 00:28:03 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2390S3SL056820; Sat, 9 Apr 2022 00:28:03 GMT (envelope-from git) Date: Sat, 9 Apr 2022 00:28:03 GMT Message-Id: <202204090028.2390S3SL056820@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: a0aa910fd4ec - main - emac_drain_rxfifo: Use a void cast instead of a dummy variable. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a0aa910fd4ec87fe12c56332095f3da180e7710a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464084; 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=Swv4+q9fT63ONJL9uinNRLU3cVUIig7ZAclVw52gVQk=; b=hSPy9sRUSO9Y3VIcFr2SfpeFzH7DN3i5qVBrvCNf4zTs2dPKtGeMAORfSGJ82uzw1UG9GI O/c9kdTMtR14SSWJLvd6Qgkmh1R39fvfzD1ecIHGcc6+fLEGjMwD9+qWjLp0cnf37hTqRq Bni76WStlqe6schaxmiVRKgySLVY2gheIGH7ym6QCVj7i7joctx0vnilG96aRmfGcTuNf6 lXMBWmBPpDGKwAouIVrcA8/k7O1uVH4i+TZfk0l9TwN7EiQknsT+Jnug6aNlyxCJ3h6m26 mOO1P+yvaOE+LtVeTp+dGpSJVlBTeg60U8vz/MQ/kQPbpgv8LUILj6egSEnnyg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649464084; a=rsa-sha256; cv=none; b=cfiltZqUFGTLksS1e8LEKjIbvnAie3WKFODO1g49PhwC3aEk5ReAlDB46TqWnWDx2vv3pq zbs1P4rtGRdC/+kFYuwmENqv8pLCquAD4An5CO5HEILFdiQPGisUVkuMoKdXBdsqp7Bxv7 LJiaCZvk5TriX5XDfVwLvKFNOpxX1w1OzNJO8+W9/dddnsbe+r6REGQ5gnCRz/987IKAts 9pMfh3IV4ZIuzCyt7igv4aE2hjfAAvQSltMJ9RF4ywQMG91NlROcy/tn2oBHVuBzOpJ0zJ ggAXk8oMuBbZ7r0GIy/w0k6a7mMSQ/WTaYTzyGt/lGQJ9wrsCpWznCa32x0APQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a0aa910fd4ec87fe12c56332095f3da180e7710a commit a0aa910fd4ec87fe12c56332095f3da180e7710a Author: John Baldwin AuthorDate: 2022-04-09 00:25:14 +0000 Commit: John Baldwin CommitDate: 2022-04-09 00:25:14 +0000 emac_drain_rxfifo: Use a void cast instead of a dummy variable. --- sys/arm/allwinner/if_emac.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/arm/allwinner/if_emac.c b/sys/arm/allwinner/if_emac.c index 5110ce2f9fb4..ded5e6fc4bbd 100644 --- a/sys/arm/allwinner/if_emac.c +++ b/sys/arm/allwinner/if_emac.c @@ -284,10 +284,9 @@ emac_reset(struct emac_softc *sc) static void emac_drain_rxfifo(struct emac_softc *sc) { - uint32_t data; while (EMAC_READ_REG(sc, EMAC_RX_FBC) > 0) - data = EMAC_READ_REG(sc, EMAC_RX_IO_DATA); + (void)EMAC_READ_REG(sc, EMAC_RX_IO_DATA); } static void