git: b03cdf3d30b9 - main - arm ti_scm_syscon: Remove unused variable.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Apr 2022 01:31:54 UTC
The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=b03cdf3d30b97d23907686ce40c9c5b0ac1c0392 commit b03cdf3d30b97d23907686ce40c9c5b0ac1c0392 Author: John Baldwin <jhb@FreeBSD.org> AuthorDate: 2022-04-09 01:31:30 +0000 Commit: John Baldwin <jhb@FreeBSD.org> CommitDate: 2022-04-09 01:31:30 +0000 arm ti_scm_syscon: Remove unused variable. Note that bus_generic_probe never fails. --- sys/arm/ti/ti_scm_syscon.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sys/arm/ti/ti_scm_syscon.c b/sys/arm/ti/ti_scm_syscon.c index d3d3f2e3a7e2..b57fbc0fb3f8 100644 --- a/sys/arm/ti/ti_scm_syscon.c +++ b/sys/arm/ti/ti_scm_syscon.c @@ -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); }