Remove superfluous bzero()'ing of the softc.

This commit is contained in:
marius 2005-11-30 16:13:49 +00:00
parent e7cfd42e49
commit 49ff09c82e
3 changed files with 0 additions and 3 deletions

View File

@ -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++) {

View File

@ -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);

View File

@ -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);