Remove superfluous bzero()'ing of the softc.
This commit is contained in:
parent
e7cfd42e49
commit
49ff09c82e
@ -108,7 +108,6 @@ clkbrd_attach(device_t dev)
|
||||
uint8_t r;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
bzero(sc, sizeof(struct clkbrd_softc));
|
||||
sc->sc_dev = dev;
|
||||
|
||||
for (i = CLKBRD_CF; i <= CLKBRD_CLKVER; i++) {
|
||||
|
@ -127,7 +127,6 @@ eeprom_attach(device_t dev)
|
||||
int error, i, rid;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
bzero(sc, sizeof(struct mk48txx_softc));
|
||||
|
||||
mtx_init(&sc->sc_mtx, "eeprom_mtx", NULL, MTX_DEF);
|
||||
|
||||
|
@ -147,7 +147,6 @@ rtc_attach(device_t dev)
|
||||
int error, rid, rtype;
|
||||
|
||||
sc = device_get_softc(dev);
|
||||
bzero(sc, sizeof(struct mc146818_softc));
|
||||
|
||||
mtx_init(&sc->sc_mtx, "rtc_mtx", NULL, MTX_SPIN);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user