From 113a0eae5d7e5e1d7d7d3a189f18b4fe9a10ab78 Mon Sep 17 00:00:00 2001 From: cognet Date: Fri, 9 Jul 2004 16:56:46 +0000 Subject: [PATCH] Do not bzero() the softc, as newbus does it for us. --- sys/dev/ppbus/if_plip.c | 1 - sys/dev/ppbus/lpt.c | 1 - sys/dev/ppbus/pcfclock.c | 1 - sys/dev/ppbus/ppi.c | 1 - sys/dev/ppbus/vpo.c | 1 - 5 files changed, 5 deletions(-) diff --git a/sys/dev/ppbus/if_plip.c b/sys/dev/ppbus/if_plip.c index 9805e0b0507..a684656d00f 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 f3f2c1d9e8a..3b978d7a987 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 0219220bd97..58bbf2c36e0 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 b537c8809b1..77a8f8f4c2a 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 50ebf813543..f01c0d12791 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); -- 2.45.2