From abffa5185a88906ff2d31d931baa40d8e42dc5f0 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Wed, 30 Nov 2005 16:13:49 +0000 Subject: [PATCH] Remove superfluous bzero()'ing of the softc. --- sys/sparc64/fhc/clkbrd.c | 1 - sys/sparc64/sparc64/eeprom.c | 1 - sys/sparc64/sparc64/rtc.c | 1 - 3 files changed, 3 deletions(-) diff --git a/sys/sparc64/fhc/clkbrd.c b/sys/sparc64/fhc/clkbrd.c index db32c1f94ffb..ec2f91eb83de 100644 --- a/sys/sparc64/fhc/clkbrd.c +++ b/sys/sparc64/fhc/clkbrd.c @@ -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++) { diff --git a/sys/sparc64/sparc64/eeprom.c b/sys/sparc64/sparc64/eeprom.c index e6b895590f0f..68390070e78e 100644 --- a/sys/sparc64/sparc64/eeprom.c +++ b/sys/sparc64/sparc64/eeprom.c @@ -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); diff --git a/sys/sparc64/sparc64/rtc.c b/sys/sparc64/sparc64/rtc.c index be8e009df0bb..fd988da85253 100644 --- a/sys/sparc64/sparc64/rtc.c +++ b/sys/sparc64/sparc64/rtc.c @@ -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);