From nobody Wed Apr 13 23:09: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 31D521B419DE; Wed, 13 Apr 2022 23:10:00 +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 4Kdywl270sz4m8X; Wed, 13 Apr 2022 23:09:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891399; 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=ZbfGNOskcpXDlMC53YzQTvoBBYU7/b11zlM8Aki9Y3o=; b=Os115wrliVRDIE2UnssDA/bBkhyy2nkg+0zjZp3UiihDGFCEYGOLemKZyEsklstXTqwTqs kYY2Efrtf3rnM2CbKygMWqZl5W1oJGvcP2HQoX0QnJSQ00+h3YDSxhWWNfXxs4kI9DJ6QF WfZd6VAmIxvNK1Zt7NqqLPFVtpO6CYhzqCBfARmedD0AfCXSz4pLQr/TJr84ISQ+NoBhEK syiOrdbsCmgW7XgpfuJPt7mJcVN+ljdlxwF+1JH2X0TQAkT5AOKxRWqFAVliwCiam/TS03 m4kAFbLL1xV6lr+B8Uzob6bQ2Mx0X/EcGz4BxPz4cMMV4RLB5g1ly6IHRkuulw== 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 EF8F014EF1; Wed, 13 Apr 2022 23:09:58 +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 23DN9wrW075093; Wed, 13 Apr 2022 23:09:58 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DN9wQM075092; Wed, 13 Apr 2022 23:09:58 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:09:58 GMT Message-Id: <202204132309.23DN9wQM075092@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: 43629a8b1805 - main - arm freescale: Remove unused variables. 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: 43629a8b1805b2f362704d626c58b19626be0950 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891399; 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=ZbfGNOskcpXDlMC53YzQTvoBBYU7/b11zlM8Aki9Y3o=; b=m9RZf5M6e6mnb++eQ/koxVtX4rgCSrcJAvildIZ0FwedtSbpuYkmb3VS9fS87nCC+NAVLE IUT1fgTd6to/O3xL0NFdWah/z4HI9Ssjc/9o09AOZx3NHWwFpBxs19nA1d+HYc5T0pde1M ETx5Fmrhnf7ayONt9UrgtGObL7jZEh3fBMpPdLCT3dXQ4iOglpUls8DEJICx3uemHJ42lN OR8On2DGqQGAT9gsfm5CNFYMd8nx4lEcWhraomPexPJgptlbQwyUnMdCV/Funk+Bz4gpSw 9CiZGUx6sRM6bNwviGZUXo4RFigf54Eobp+mEtf5NQVFXhOWDA93EgAwjNdNkQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891399; a=rsa-sha256; cv=none; b=pLIRrNCtlq0aPcZfEpkbnKG5Bk4fMKPS4ftYZd5iQNI3wztRz3Hg4nIgOX5XecBty74iqd mrTPHKUYkhcRC1ZcdUX/Dguf4W69DstdXkzMeU/OOc99mg2BfGfdlYG3eyuO3jL0zLXvUO qp0/nF/S4AZbQwKCZs38wHwEV8+iuGLwCKc/6oJfc/bUW2Vk1GUzI5reB9zQxpxyFg67g+ YzdriPiuAY5G5xXu8yyJbZ1GHQAZ5BQK5pTytcQ4nn5JSGfYCuXPnQF5jRrJdSD6l8QpK0 iZ9xfUeKZzCR6j3hPbr79LeTGUkYzlDaF+xgzfni0rrTrQTNrHOgJRyQhazrDw== 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=43629a8b1805b2f362704d626c58b19626be0950 commit 43629a8b1805b2f362704d626c58b19626be0950 Author: John Baldwin AuthorDate: 2022-04-13 23:08:22 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:22 +0000 arm freescale: Remove unused variables. --- sys/arm/freescale/imx/imx_nop_usbphy.c | 3 --- sys/arm/freescale/vybrid/vf_adc.c | 3 --- sys/arm/freescale/vybrid/vf_tcon.c | 3 --- sys/arm/freescale/vybrid/vf_uart.c | 5 +---- 4 files changed, 1 insertion(+), 13 deletions(-) diff --git a/sys/arm/freescale/imx/imx_nop_usbphy.c b/sys/arm/freescale/imx/imx_nop_usbphy.c index 200511b2c273..357a237c2a61 100644 --- a/sys/arm/freescale/imx/imx_nop_usbphy.c +++ b/sys/arm/freescale/imx/imx_nop_usbphy.c @@ -75,9 +75,6 @@ usbphy_detach(device_t dev) static int usbphy_attach(device_t dev) { - struct usbphy_softc *sc; - - sc = device_get_softc(dev); /* * Turn on the phy clocks. diff --git a/sys/arm/freescale/vybrid/vf_adc.c b/sys/arm/freescale/vybrid/vf_adc.c index 7a506b89300e..bdb6e826e176 100644 --- a/sys/arm/freescale/vybrid/vf_adc.c +++ b/sys/arm/freescale/vybrid/vf_adc.c @@ -142,9 +142,6 @@ adc_probe(device_t dev) static void adc_intr(void *arg) { - struct adc_softc *sc; - - sc = arg; /* Conversation complete */ } diff --git a/sys/arm/freescale/vybrid/vf_tcon.c b/sys/arm/freescale/vybrid/vf_tcon.c index 475f86271c45..847641a30d22 100644 --- a/sys/arm/freescale/vybrid/vf_tcon.c +++ b/sys/arm/freescale/vybrid/vf_tcon.c @@ -74,13 +74,10 @@ static struct resource_spec tcon_spec[] = { uint32_t tcon_bypass(void) { - struct tcon_softc *sc; if (tcon_sc == NULL) return (1); - sc = tcon_sc; - WRITE4(tcon_sc, TCON0_CTRL1, TCON_BYPASS); return (0); diff --git a/sys/arm/freescale/vybrid/vf_uart.c b/sys/arm/freescale/vybrid/vf_uart.c index 50a0f9104e28..6a726910a140 100644 --- a/sys/arm/freescale/vybrid/vf_uart.c +++ b/sys/arm/freescale/vybrid/vf_uart.c @@ -339,10 +339,8 @@ vf_uart_bus_getsig(struct uart_softc *sc) static int vf_uart_bus_ioctl(struct uart_softc *sc, int request, intptr_t data) { - struct uart_bas *bas; int error; - bas = &sc->sc_bas; error = 0; uart_lock(sc->sc_hwmtx); switch (request) { @@ -369,7 +367,6 @@ vf_uart_bus_ipend(struct uart_softc *sc) int ipend; uint32_t usr1, usr2; int reg; - int sfifo; bas = &sc->sc_bas; ipend = 0; @@ -378,7 +375,7 @@ vf_uart_bus_ipend(struct uart_softc *sc) usr1 = uart_getreg(bas, UART_S1); usr2 = uart_getreg(bas, UART_S2); - sfifo = uart_getreg(bas, UART_SFIFO); + (void)uart_getreg(bas, UART_SFIFO); /* ack usr2 */ uart_setreg(bas, UART_S2, usr2);