summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Souza <luiz@netgate.com>2018-03-09 04:06:50 -0300
committerLuiz Souza <luiz@netgate.com>2018-03-08 22:03:27 -0600
commit7d8125bc3128984869fd1520d5387ef4d603720d (patch)
tree7426bef084a39f24954a90cc16dd42e155b1e899
parent303bd062b084943267b4499e4122a360cbb0a48b (diff)
downloadFreeBSD-src-7d8125bc3128984869fd1520d5387ef4d603720d.zip
FreeBSD-src-7d8125bc3128984869fd1520d5387ef4d603720d.tar.gz
Fix the build.
(cherry picked from commit abb5881302576b23a102094ea2f11717a85ff148)
-rw-r--r--sys/dev/etherswitch/e6000sw/e6000sw.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/etherswitch/e6000sw/e6000sw.c b/sys/dev/etherswitch/e6000sw/e6000sw.c
index 3ec9abd..dcf253b 100644
--- a/sys/dev/etherswitch/e6000sw/e6000sw.c
+++ b/sys/dev/etherswitch/e6000sw/e6000sw.c
@@ -842,6 +842,7 @@ static int
e6000sw_readphy(device_t dev, int phy, int reg)
{
e6000sw_softc_t *sc;
+ uint32_t val;
sc = device_get_softc(dev);
if (!e6000sw_is_phyport(sc, phy) || reg >= E6000SW_NUM_PHY_REGS) {
OpenPOWER on IntegriCloud