aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2022-10-05 09:24:13 +0000
committerAndrew Turner <andrew@FreeBSD.org>2022-10-05 09:26:36 +0000
commite0853c9336616e4ca4ff41aab0f8ad91bb75fd42 (patch)
tree8f07b73f05535a093cd238cca2ccff0898ab4ed7
parent9d4cff787ecbfb8afba09a7b60e65d1fbefa5ded (diff)
downloadsrc-e0853c9336616e4ca4ff41aab0f8ad91bb75fd42.tar.gz
src-e0853c9336616e4ca4ff41aab0f8ad91bb75fd42.zip
Use SYSCTL_FOREACH in drm2
This was added recently. Use it to get the correct _FOREACH macro. Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/dev/drm2/drm_sysctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/drm2/drm_sysctl.c b/sys/dev/drm2/drm_sysctl.c
index 6b1f2e7e6e3f..2879f2df1220 100644
--- a/sys/dev/drm2/drm_sysctl.c
+++ b/sys/dev/drm2/drm_sysctl.c
@@ -78,7 +78,7 @@ int drm_sysctl_init(struct drm_device *dev)
/* Find the next free slot under hw.dri */
i = 0;
- SLIST_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) {
+ SYSCTL_FOREACH(oid, SYSCTL_CHILDREN(drioid), oid_link) {
if (i <= oid->oid_arg2)
i = oid->oid_arg2 + 1;
}