From nobody Sat Apr 09 01:31:56 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 AB8FF1A8BE37; Sat, 9 Apr 2022 01:31: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 4KZyJs55kbz4k8y; Sat, 9 Apr 2022 01:31:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649467918; 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=Hh8s5hYEjiYGkvUaSjp0bCJxiC3jE2LcVynmMP2LN7I=; b=KhYMqtSIZxHP0cBi6cO/xmBHqInhSnLaR87EXpu+yvDOepeZY2QCgZj7Q2UyU1uWst1zC8 tp1iwScOhBoG5+wpKmt+kVcDzZSnFowNLVM8lYj/VLaxbzUkEobRzfG78lqLAeKsdfNWin bJtG/V0xfTvUJ71dSF75CVZKuVV4dWGXc5VUGO2TgOYrU/og7r3J7Mdz17R35mD528AS92 OYyVZ3WkLnqmizYrDQcwZI7Lmx5hFXd/65SNDVl1IEjxgkRWxGLk2sKS4zURF1HkSBQjZR kU4q6oyvUE7fepZDbmXNhi92by8frQjVupxKkOpLoKn/wFVLK9jQqN2bJ6UEIQ== 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 D4AD710748; Sat, 9 Apr 2022 01:31:56 +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 2391VugZ049591; Sat, 9 Apr 2022 01:31:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2391VuB9049590; Sat, 9 Apr 2022 01:31:56 GMT (envelope-from git) Date: Sat, 9 Apr 2022 01:31:56 GMT Message-Id: <202204090131.2391VuB9049590@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: ce71fb38d9a4 - main - ti_adc: Use void cast instead of a dummy variable. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ce71fb38d9a43173b565549396429c34cc6e964d Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649467918; 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=Hh8s5hYEjiYGkvUaSjp0bCJxiC3jE2LcVynmMP2LN7I=; b=DB8ysA1kGckRrYAB1ULhNN0qs8HAAJLx/PEda5iSNNUTVJd0ftjM4/pL9iY9FYkBTKRJL7 D58QbbSjNrTVjXHhQY73u52URznRBVPyP67HuIWRs3MnjSAlRN8DqGZlk9GYZUuNND2Ood RydIR1A4itwzXApd5H+1As811hqUcQjuPYD+Zz4NfBPqpeyvCJtqKJWP7+rD+jCjOd/7L5 kMPZRBzAuiA1F+KrwP2k0LjmEPBYxaqZtIGuQz1hjwf1hEEz3c+6NXYnIvAMsxU9BGbKci eCRu0RFz/ivIhl7LrNkPrwlgHbPyeUhY27eETjuoWXhRwQ0XSzKOeNhJXtwv3g== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649467918; a=rsa-sha256; cv=none; b=kVPmCQMPmKwHFGP4M1TuNIXQzeBsBLuPOngzAeFb8sXuahGpoXPLU2vU5dqycl95nTrm4k lCgEiWymsEE5H29LS7WUdNGJJbEjp5as6ShZCHo/FD71Y0znNZ/BbyQ1Y+nZ/ilpdRqcqL ik0jdjoSzkMN+8tidnSKBcvqvs8DjqMMwP6lVb6St/Imrkd2W2cGzNT8lMkhYiqcHt9o+0 gbk9xnlU0kZwXULUlUW7lEwf5GP59yDVfvsUtAQuJgZPNFNsEqL/F4Olxkjknfwj+zUGYm cmib0jW9BVJQ9LGr28B3r5LQ0LvL8vzKmwIDK/jFkOkfPIPKw1iRpirqxddk6Q== 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=ce71fb38d9a43173b565549396429c34cc6e964d commit ce71fb38d9a43173b565549396429c34cc6e964d Author: John Baldwin AuthorDate: 2022-04-09 01:31:30 +0000 Commit: John Baldwin CommitDate: 2022-04-09 01:31:30 +0000 ti_adc: Use void cast instead of a dummy variable. --- sys/arm/ti/ti_adc.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/arm/ti/ti_adc.c b/sys/arm/ti/ti_adc.c index 766729fcdab3..2a0671bb0759 100644 --- a/sys/arm/ti/ti_adc.c +++ b/sys/arm/ti/ti_adc.c @@ -142,7 +142,6 @@ static void ti_adc_disable(struct ti_adc_softc *sc) { int count; - uint32_t data; TI_ADC_LOCK_ASSERT(sc); @@ -165,13 +164,13 @@ ti_adc_disable(struct ti_adc_softc *sc) /* Drain the FIFO data. */ count = ADC_READ4(sc, ADC_FIFO0COUNT) & ADC_FIFO_COUNT_MSK; while (count > 0) { - data = ADC_READ4(sc, ADC_FIFO0DATA); + (void)ADC_READ4(sc, ADC_FIFO0DATA); count = ADC_READ4(sc, ADC_FIFO0COUNT) & ADC_FIFO_COUNT_MSK; } count = ADC_READ4(sc, ADC_FIFO1COUNT) & ADC_FIFO_COUNT_MSK; while (count > 0) { - data = ADC_READ4(sc, ADC_FIFO1DATA); + (void)ADC_READ4(sc, ADC_FIFO1DATA); count = ADC_READ4(sc, ADC_FIFO1COUNT) & ADC_FIFO_COUNT_MSK; }