The branch main has been updated by jhb:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=773cfd2bf82561915422c1c5f32024086dc502c5

commit 773cfd2bf82561915422c1c5f32024086dc502c5
Author:     John Baldwin <j...@freebsd.org>
AuthorDate: 2022-04-12 21:58:58 +0000
Commit:     John Baldwin <j...@freebsd.org>
CommitDate: 2022-04-12 21:58:58 +0000

    adt746x: Remove unused variables.
---
 sys/dev/iicbus/adt746x.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/dev/iicbus/adt746x.c b/sys/dev/iicbus/adt746x.c
index 435075e78e4a..6112f9a9dd36 100644
--- a/sys/dev/iicbus/adt746x.c
+++ b/sys/dev/iicbus/adt746x.c
@@ -472,7 +472,6 @@ adt746x_attach_fans(device_t dev)
        struct adt746x_softc *sc;
        struct sysctl_oid *oid, *fanroot_oid;
        struct sysctl_ctx_list *ctx;
-       phandle_t child;
        char sysctl_name[32];
        int i, j;
 
@@ -480,8 +479,6 @@ adt746x_attach_fans(device_t dev)
 
        sc->sc_nfans = 0;
 
-       child = ofw_bus_get_node(dev);
-
        /* Count the actual number of fans. */
        sc->sc_nfans = adt746x_fill_fan_prop(dev);
 
@@ -600,7 +597,6 @@ adt746x_attach_sensors(device_t dev)
        struct adt746x_softc *sc;
        struct sysctl_oid *oid, *sensroot_oid;
        struct sysctl_ctx_list *ctx;
-       phandle_t child;
        char sysctl_name[40];
        const char *unit;
        const char *desc;
@@ -609,7 +605,6 @@ adt746x_attach_sensors(device_t dev)
 
        sc = device_get_softc(dev);
        sc->sc_nsensors = 0;
-       child = ofw_bus_get_node(dev);
 
        /* Count the actual number of sensors. */
        sc->sc_nsensors = adt746x_fill_sensor_prop(dev);

Reply via email to