Remove superfluous bzero()'ing of the softc.
This commit is contained in:
parent
0b5f0b533a
commit
abffa5185a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152961
@ -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