arm ti_scm_syscon: Remove unused variable.

Note that bus_generic_probe never fails.
This commit is contained in:
John Baldwin
2022-04-08 18:31:30 -07:00
parent f4bd36ba2a
commit b03cdf3d30
+1 -2
View File
@@ -165,7 +165,6 @@ ti_scm_syscon_attach(device_t dev)
{
struct ti_scm_syscon_softc *sc;
phandle_t node, child;
int err;
sc = device_get_softc(dev);
sc->dev = dev;
@@ -191,7 +190,7 @@ ti_scm_syscon_attach(device_t dev)
simplebus_init(sc->dev, node);
err = bus_generic_probe(sc->dev);
bus_generic_probe(sc->dev);
for (child = OF_child(node); child != 0; child = OF_peer(child)) {
simplebus_add_device(sc->dev, child, 0, NULL, -1, NULL);
}