git: 823b5cfbabb9 - main - mii_fdt: fix a set-but-not-used warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 03 Apr 2022 15:30:23 UTC
The branch main has been updated by mhorne:
URL: https://cgit.FreeBSD.org/src/commit/?id=823b5cfbabb93294c9294c1b1b2cbeb5a61af74b
commit 823b5cfbabb93294c9294c1b1b2cbeb5a61af74b
Author: Mitchell Horne <mhorne@FreeBSD.org>
AuthorDate: 2022-03-30 21:45:54 +0000
Commit: Mitchell Horne <mhorne@FreeBSD.org>
CommitDate: 2022-04-03 15:28:37 +0000
mii_fdt: fix a set-but-not-used warning
---
sys/dev/mii/mii_fdt.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/dev/mii/mii_fdt.c b/sys/dev/mii/mii_fdt.c
index 9cf3fd2fab37..d60c91cc0c8c 100644
--- a/sys/dev/mii/mii_fdt.c
+++ b/sys/dev/mii/mii_fdt.c
@@ -257,13 +257,11 @@ static int
miibus_fdt_attach(device_t dev)
{
struct mii_attach_args *ma;
- struct mii_data *sc;
int i, error, nchildren;
device_t parent, *children;
phandle_t phy_node;
parent = device_get_parent(dev);
- sc = device_get_softc(dev);
error = device_get_children(dev, &children, &nchildren);
if (error != 0 || nchildren == 0)