svn commit: r302498 - head/sys/arm/nvidia
Andrew Turner
andrew at FreeBSD.org
Sat Jul 9 13:27:15 UTC 2016
Author: andrew
Date: Sat Jul 9 13:27:14 2016
New Revision: 302498
URL: https://svnweb.freebsd.org/changeset/base/302498
Log:
Remove an unneeded call to fdt_get_unit, the return value is unused.
MFC after: 1 month
Sponsored by: ABT Systems Ltd
Modified:
head/sys/arm/nvidia/tegra_pcie.c
Modified: head/sys/arm/nvidia/tegra_pcie.c
==============================================================================
--- head/sys/arm/nvidia/tegra_pcie.c Sat Jul 9 12:17:01 2016 (r302497)
+++ head/sys/arm/nvidia/tegra_pcie.c Sat Jul 9 13:27:14 2016 (r302498)
@@ -1355,7 +1355,7 @@ tegra_pcib_set_bar(struct tegra_pcib_sof
}
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;
@@ -1495,7 +1495,6 @@ tegra_pcib_attach(device_t dev)
{
struct tegra_pcib_softc *sc;
phandle_t node;
- uint32_t unit;
int rv;
int rid;
int nranges;
@@ -1505,7 +1504,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);
@@ -1618,7 +1616,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-all
mailing list