Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Apr 2018 21:38:50 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r331888 - stable/11/sys/arm/nvidia
Message-ID:  <201804022138.w32Lco0n013306@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Mon Apr  2 21:38:50 2018
New Revision: 331888
URL: https://svnweb.freebsd.org/changeset/base/331888

Log:
  MFC r302498 by andrew:
  
  Remove an unneeded call to fdt_get_unit, the return value is unused.
  
  Sponsored by:	ABT Systems Ltd

Modified:
  stable/11/sys/arm/nvidia/tegra_pcie.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/arm/nvidia/tegra_pcie.c
==============================================================================
--- stable/11/sys/arm/nvidia/tegra_pcie.c	Mon Apr  2 21:33:16 2018	(r331887)
+++ stable/11/sys/arm/nvidia/tegra_pcie.c	Mon Apr  2 21:38:50 2018	(r331888)
@@ -1256,7 +1256,7 @@ tegra_pcib_set_bar(struct tegra_pcib_softc *sc, int ba
 }
 
 static int
-tegra_pcib_enable(struct tegra_pcib_softc *sc, uint32_t port)
+tegra_pcib_enable(struct tegra_pcib_softc *sc)
 {
 	int rv;
 	int i;
@@ -1442,7 +1442,6 @@ tegra_pcib_attach(device_t dev)
 {
 	struct tegra_pcib_softc *sc;
 	phandle_t node;
-	uint32_t unit;
 	int rv;
 	int rid;
 	struct tegra_pcib_port *port;
@@ -1450,7 +1449,6 @@ tegra_pcib_attach(device_t dev)
 
 	sc = device_get_softc(dev);
 	sc->dev = dev;
-	unit = fdt_get_unit(dev);
 	mtx_init(&sc->mtx, "msi_mtx", NULL, MTX_DEF);
 
 	node = ofw_bus_get_node(dev);
@@ -1552,7 +1550,7 @@ tegra_pcib_attach(device_t dev)
 	/*
 	 * Enable PCIE device.
 	 */
-	rv = tegra_pcib_enable(sc, unit);
+	rv = tegra_pcib_enable(sc);
 	if (rv != 0)
 		goto out;
 	for (i = 0; i < TEGRA_PCIB_MAX_PORTS; i++) {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804022138.w32Lco0n013306>