mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-14 10:09:48 +00:00
Do not bzero() the softc, as newbus does it for us.
This commit is contained in:
parent
550473de5b
commit
0f2f1f7124
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=131882
@ -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);
|
||||
|
@ -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.
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user