svn commit: r331888 - stable/11/sys/arm/nvidia
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Mon Apr 2 21:38:51 UTC 2018
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++) {
More information about the svn-src-stable
mailing list