From nobody Wed Apr 13 23:10:14 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 E723A1B425A7; Wed, 13 Apr 2022 23:10:15 +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 4Kdyx33FfBz4mCZ; Wed, 13 Apr 2022 23:10:15 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891415; 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=zxXnWfOaK/SVXARtDHxuiyBS/nNTLS0rwiwnskG2uoY=; b=u+jWTz8uQmtARyYXwtulk7EmVKasaFqXsGZJVUUNRFDb9FmNGd4BX88wFWgQyGZhNhu0LX tffNml3x/qHERjcv8INpZxWp4wQgyuRAEol3g1TWitNIawscnNlau+GfUPDTkAWCvuM7c5 foAz1eYEAM6mIC5Rkcyl3an/Ds+u5L2bHaa/7MIu11Z3OS1XPBSq9r75TkDc/H4hdSPxoV yu8CgU9QqLAysNTgNPrz8UVnUf2fDl498D7xysBJV51U0gjM6BYfr4LjFa4DHnSi8tWPb+ 3lP7LMq4NI9iyI5rOANa4peXgJCMLRyEpQfRnCf8DaphXTexxZa6uGNFkywFSg== 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 47534151ED; Wed, 13 Apr 2022 23:10:14 +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 23DNAEwm080143; Wed, 13 Apr 2022 23:10:14 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23DNAEJa080141; Wed, 13 Apr 2022 23:10:14 GMT (envelope-from git) Date: Wed, 13 Apr 2022 23:10:14 GMT Message-Id: <202204132310.23DNAEJa080141@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: a30eb84a5dc4 - main - powerpc mpc85xx: 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: a30eb84a5dc4cb3c7e50f4f01473eeeab8b5bbd3 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649891415; 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=zxXnWfOaK/SVXARtDHxuiyBS/nNTLS0rwiwnskG2uoY=; b=kNcj9oWRlrAsdgdoCrmQ7DMbsVcpFxh1GkHrp2KBVFmOag9JForB7XbPH6Nvqld7acgasa 7QFUywbBDJf+diD5kFwzBJMx4n26Hia3D3b7Nu5/cLSA7JMkhNZrNnERe/GNZP77o8ZgL9 YaR2c4tmubumCRpt5tR/WCbUhb7MRqz8KBxQgR19PVr2LY+lkqTsS2RmqL7hHOHhSi9J7J LSvjua1HDh+CRdryg/m3CSDyakmqBaw+4XO8o9UNTRzqqqIMkrAza41AQG7fBJI2/s+evP IWAFlzO5j0cau60Y9AiEtOSBGq0LYJb2c2/oVTVzeKOs/LR+pqDope9Z3/ETKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649891415; a=rsa-sha256; cv=none; b=AJbfGR1n2R21dtvI5isqxRGE6rN1Jr+Qnw1AiygoRZoGA6iT+R1Vo1HmcKeTWVPd8K9YA2 jJnz8abSREqLYgQIsMMGU9HX4a58QjoQf7jSIdE9RXy2Qfgzvl9EHXHY4VP3fz3esAA8+8 O/9ZYCRqgiAlzPB+OFy1p+ImtRN5EXeLpZrBwbNsWfqbs1Wo4RfFLBCI+UMZt1ejlOAZOh Zo94YV/WbELjGmReoQgN+pZ1jupA26Zi2jv/9wVsD/cGCMdrPPKGCqzeWEwiMNw04ErBJb mOI8JxzUJ/JYEZYgGdDtQjbxmpX/wF9Lbd56pGmL4FuWIM1VoUL/ESVKPhqIPA== 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=a30eb84a5dc4cb3c7e50f4f01473eeeab8b5bbd3 commit a30eb84a5dc4cb3c7e50f4f01473eeeab8b5bbd3 Author: John Baldwin AuthorDate: 2022-04-13 23:08:24 +0000 Commit: John Baldwin CommitDate: 2022-04-13 23:08:24 +0000 powerpc mpc85xx: Remove unused variables. --- sys/powerpc/mpc85xx/fsl_diu.c | 2 -- sys/powerpc/mpc85xx/pci_mpc85xx.c | 4 ---- 2 files changed, 6 deletions(-) diff --git a/sys/powerpc/mpc85xx/fsl_diu.c b/sys/powerpc/mpc85xx/fsl_diu.c index b116809011dc..c29df5e5393b 100644 --- a/sys/powerpc/mpc85xx/fsl_diu.c +++ b/sys/powerpc/mpc85xx/fsl_diu.c @@ -214,12 +214,10 @@ diu_intr(void *arg) static int diu_set_pxclk(device_t dev, unsigned int freq) { - phandle_t node; unsigned long bus_freq; uint32_t pxclk_set; uint32_t clkdvd; - node = ofw_bus_get_node(device_get_parent(dev)); if ((bus_freq = mpc85xx_get_platform_clock()) <= 0) { device_printf(dev, "Unable to get bus frequency\n"); return (ENXIO); diff --git a/sys/powerpc/mpc85xx/pci_mpc85xx.c b/sys/powerpc/mpc85xx/pci_mpc85xx.c index 8d0c21342215..b6f7867f7f74 100644 --- a/sys/powerpc/mpc85xx/pci_mpc85xx.c +++ b/sys/powerpc/mpc85xx/pci_mpc85xx.c @@ -551,12 +551,10 @@ fsl_pcib_read_config(device_t dev, u_int bus, u_int slot, u_int func, u_int reg, int bytes) { struct fsl_pcib_softc *sc = device_get_softc(dev); - u_int devfn; if (bus == sc->sc_busnr && !sc->sc_pcie && slot < PCI_SLOT_FIRST) return (~0); - devfn = DEVFN(bus, slot, func); return (fsl_pcib_cfgread(sc, bus, slot, func, reg, bytes)); } @@ -770,11 +768,9 @@ fsl_pcib_decode_win(phandle_t node, struct fsl_pcib_softc *sc) static int fsl_pcib_alloc_msi(device_t dev, device_t child, int count, int maxcount, int *irqs) { - struct fsl_pcib_softc *sc; vmem_addr_t start; int err, i; - sc = device_get_softc(dev); if (msi_vmem == NULL) return (ENODEV);