diff options
| author | 2006-01-21 12:20:51 +0000 | |
|---|---|---|
| committer | 2006-01-21 12:20:51 +0000 | |
| commit | 92362875699eca6257aa297bd4b1f9687b8ed070 (patch) | |
| tree | a09b2e3d0ed9916636cbe2008d77eb3f8507a9c4 /sys/kern/subr_autoconf.c | |
| parent | Invoke disk_detach() and related cleanup work in detach(), rather than (diff) | |
| download | wireguard-openbsd-92362875699eca6257aa297bd4b1f9687b8ed070.tar.xz wireguard-openbsd-92362875699eca6257aa297bd4b1f9687b8ed070.zip | |
Remove now unused zeroref member in cfattach structures.
Diffstat (limited to 'sys/kern/subr_autoconf.c')
| -rw-r--r-- | sys/kern/subr_autoconf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c index fc58c93f7eb..befee4036e3 100644 --- a/sys/kern/subr_autoconf.c +++ b/sys/kern/subr_autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_autoconf.c,v 1.42 2006/01/13 19:22:54 miod Exp $ */ +/* $OpenBSD: subr_autoconf.c,v 1.43 2006/01/21 12:20:53 miod Exp $ */ /* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */ /* @@ -829,8 +829,7 @@ device_ref(struct device *dv) /* * Decrement the ref count on the device structure. * - * free's the structure when the ref count hits zero and calls the zeroref - * function. + * free's the structure when the ref count hits zero. * * Context: process or interrupt */ @@ -839,9 +838,6 @@ device_unref(struct device *dv) { dv->dv_ref--; if (dv->dv_ref == 0) { - if (dv->dv_cfdata->cf_attach->ca_zeroref) - (*dv->dv_cfdata->cf_attach->ca_zeroref)(dv); - free(dv, M_DEVBUF); } } |
