diff options
author | cognet <cognet@FreeBSD.org> | 2004-07-09 16:56:46 +0000 |
---|---|---|
committer | cognet <cognet@FreeBSD.org> | 2004-07-09 16:56:46 +0000 |
commit | 113a0eae5d7e5e1d7d7d3a189f18b4fe9a10ab78 (patch) | |
tree | d7a4503a0d47874d85139d67296202a32aab437d /sys/dev | |
parent | 0bea5c010822d29aa9e614f86ee4e71cac7876cb (diff) | |
download | FreeBSD-src-113a0eae5d7e5e1d7d7d3a189f18b4fe9a10ab78.zip FreeBSD-src-113a0eae5d7e5e1d7d7d3a189f18b4fe9a10ab78.tar.gz |
Do not bzero() the softc, as newbus does it for us.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/ppbus/if_plip.c | 1 | ||||
-rw-r--r-- | sys/dev/ppbus/lpt.c | 1 | ||||
-rw-r--r-- | sys/dev/ppbus/pcfclock.c | 1 | ||||
-rw-r--r-- | sys/dev/ppbus/ppi.c | 1 | ||||
-rw-r--r-- | sys/dev/ppbus/vpo.c | 1 |
5 files changed, 0 insertions, 5 deletions
diff --git a/sys/dev/ppbus/if_plip.c b/sys/dev/ppbus/if_plip.c index 9805e0b..a684656 100644 --- a/sys/dev/ppbus/if_plip.c +++ b/sys/dev/ppbus/if_plip.c @@ -201,7 +201,6 @@ lp_probe(device_t dev) uintptr_t irq; lp = DEVTOSOFTC(dev); - bzero(lp, sizeof(struct lp_data)); /* retrieve the ppbus irq */ BUS_READ_IVAR(ppbus, dev, PPBUS_IVAR_IRQ, &irq); diff --git a/sys/dev/ppbus/lpt.c b/sys/dev/ppbus/lpt.c index f3f2c1d..3b978d7 100644 --- a/sys/dev/ppbus/lpt.c +++ b/sys/dev/ppbus/lpt.c @@ -356,7 +356,6 @@ lpt_probe(device_t dev) struct lpt_data *sc; sc = DEVTOSOFTC(dev); - bzero(sc, sizeof(struct lpt_data)); /* * Now, try to detect the printer. diff --git a/sys/dev/ppbus/pcfclock.c b/sys/dev/ppbus/pcfclock.c index 0219220..58bbf2c 100644 --- a/sys/dev/ppbus/pcfclock.c +++ b/sys/dev/ppbus/pcfclock.c @@ -133,7 +133,6 @@ pcfclock_probe(device_t dev) device_set_desc(dev, "PCF-1.0"); sc = DEVTOSOFTC(dev); - bzero(sc, sizeof(struct pcfclock_data)); return (0); } diff --git a/sys/dev/ppbus/ppi.c b/sys/dev/ppbus/ppi.c index b537c88..77a8f8f 100644 --- a/sys/dev/ppbus/ppi.c +++ b/sys/dev/ppbus/ppi.c @@ -152,7 +152,6 @@ ppi_probe(device_t dev) device_set_desc(dev, "Parallel I/O"); ppi = DEVTOSOFTC(dev); - bzero(ppi, sizeof(struct ppi_data)); return (0); } diff --git a/sys/dev/ppbus/vpo.c b/sys/dev/ppbus/vpo.c index 50ebf81..f01c0d1 100644 --- a/sys/dev/ppbus/vpo.c +++ b/sys/dev/ppbus/vpo.c @@ -107,7 +107,6 @@ vpo_probe(device_t dev) int error; vpo = DEVTOSOFTC(dev); - bzero(vpo, sizeof(struct vpo_data)); /* vpo dependent initialisation */ vpo->vpo_unit = device_get_unit(dev); |