mii_fdt: fix a set-but-not-used warning

This commit is contained in:
Mitchell Horne 2022-03-30 18:45:54 -03:00
parent 517ea731d4
commit 823b5cfbab

View file

@ -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)