summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-11 23:22:33 +0000
committerjhb <jhb@FreeBSD.org>2001-01-11 23:22:33 +0000
commit0058a1591e8c0227aa8a33ffc9f1a5e4c648af31 (patch)
tree8f4dffbafddc6ab7bdf034f02d07ee8496713688 /sys
parent8e135edc9d3d2a4c456490bd361e6b040dccb0c3 (diff)
downloadFreeBSD-src-0058a1591e8c0227aa8a33ffc9f1a5e4c648af31.zip
FreeBSD-src-0058a1591e8c0227aa8a33ffc9f1a5e4c648af31.tar.gz
Woops, use the SYSCTL_STATIC_CHILDREN() macro instead of manually
expanding it for _hw_snd.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sound/pcm/sound.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index 6c8d468..13e46d7 100644
--- a/sys/dev/sound/pcm/sound.c
+++ b/sys/dev/sound/pcm/sound.c
@@ -304,9 +304,9 @@ pcm_register(device_t dev, void *devinfo, int numplay, int numrec)
sysctl_ctx_init(&d->sysctl_tree);
d->sysctl_tree_top = SYSCTL_ADD_NODE(&d->sysctl_tree,
- &sysctl__hw_snd_children, OID_AUTO,
+ SYSCTL_STATIC_CHILDREN(_hw_snd), OID_AUTO,
device_get_nameunit(dev), CTLFLAG_RD, 0, "");
- if (!d->sysctl_tree_top) {
+ if (d->sysctl_tree_top == NULL) {
sysctl_ctx_free(&d->sysctl_tree);
goto no;
}
OpenPOWER on IntegriCloud