Remove superfluous bzero()'ing of the softc.

This commit is contained in:
Marius Strobl 2005-11-30 16:13:49 +00:00
parent 0b5f0b533a
commit abffa5185a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152961
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);