Hello,

if_ugl.c has similar issue, and I think this should be fixed.
ok to commit?

----
SASANO Takayoshi <u...@mx5.nisiq.net>

Index: if_ugl.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/if_ugl.c,v
retrieving revision 1.2
diff -u -p -r1.2 if_ugl.c
--- if_ugl.c    3 Dec 2013 21:06:59 -0000       1.2
+++ if_ugl.c    5 Dec 2013 20:06:50 -0000
@@ -152,7 +152,6 @@ struct ugl_softc {
 
        uByte                   sc_ibuf[UGL_INTR_PKTLEN];
 
-       int                     sc_unit;
        u_int                   sc_rx_errs;
        struct timeval          sc_rx_notice;
        u_int                   sc_intr_errs;
@@ -246,7 +245,6 @@ ugl_attach(struct device *parent, struct
                return;
        }
 
-       sc->sc_unit = self->dv_unit;
        sc->sc_udev = dev;
        sc->sc_product = uaa->product;
        sc->sc_vendor = uaa->vendor;
@@ -292,7 +290,7 @@ ugl_attach(struct device *parent, struct
        macaddr_hi = htons(0x2acb);
        bcopy(&macaddr_hi, &sc->sc_arpcom.ac_enaddr[0], sizeof(u_int16_t));
        bcopy(&ticks, &sc->sc_arpcom.ac_enaddr[2], sizeof(u_int32_t));
-       sc->sc_arpcom.ac_enaddr[5] = (u_int8_t)(sc->sc_unit);
+       sc->sc_arpcom.ac_enaddr[5] = (u_int8_t)(sc->sc_dev.dv_unit);
 
        printf("%s: address %s\n",
            sc->sc_dev.dv_xname, ether_sprintf(sc->sc_arpcom.ac_enaddr));

Reply via email to